SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 13/01/2018, 08:14 PM   #1
jasperschellekens
Huge Clucker
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Gehenna
Posts: 336
Reputation: 17
Default SAMP save all players on restart XYZ bug

There is a strange bug: all players will login at the position of 1 player while other stats gets saved correctly.
What am i doing wrong?

PHP Code:
GetPlayerPos(i,pX[i],pY[i],pZ[i]);
INI_IntSet(Acc(i),"X1",floatround(pX[i]));
INI_IntSet(Acc(i),"Y1",floatround(pY[i]));
INI_IntSet(Acc(i),"Z1",floatround(pZ[i]));

//saved correctly
INI_IntSet(Acc(i),"Passport",Passport[i]); 
__________________

Server IP: 144.76.68.79:11595
Game mode: Roleplay/RP/LARP V2.1
Langauge: English
Version: V2.1

My work
[Filterscripts] Jasper's Woodcutting job/skill with levels and XP. Custom map
[Filterscripts] Simple trucking filterscript
jasperschellekens is online now   Reply With Quote
Old 13/01/2018, 10:17 PM   #2
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,689
Reputation: 459
Default Re: SAMP save all players on restart XYZ bug

Why are you saving a position as integer? It is suppose to be saved as float.
JaKe Elite is offline   Reply With Quote
Old 14/01/2018, 03:15 PM   #3
jasperschellekens
Huge Clucker
 
jasperschellekens's Avatar
 
Join Date: Dec 2016
Location: Gehenna
Posts: 336
Reputation: 17
Default Re: SAMP save all players on restart XYZ bug

Quote:
Originally Posted by JaKe Elite View Post
Why are you saving a position as integer? It is suppose to be saved as float.
Thank you man. I now did INI_writefloat and works perfectly.
__________________

Server IP: 144.76.68.79:11595
Game mode: Roleplay/RP/LARP V2.1
Langauge: English
Version: V2.1

My work
[Filterscripts] Jasper's Woodcutting job/skill with levels and XP. Custom map
[Filterscripts] Simple trucking filterscript
jasperschellekens is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why my samp wont save positions while i do /save? GTLS Client Support 15 17/05/2015 06:44 AM
Why This Won't Save The Players' Information? Youssef214 Scripting Help 8 13/06/2014 11:18 AM
Max Players Save in DB bug. Stefand Scripting Help 0 27/01/2014 04:53 PM
Vip players save in DerickClark Scripting Help 0 07/04/2013 07:10 AM
how do i save the stats of players? Smokey619 Help Archive 2 15/07/2010 09:34 PM


All times are GMT. The time now is 12:39 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.