SAMP save all players on restart XYZ bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SAMP save all players on restart XYZ bug (
/showthread.php?tid=647957)
SAMP save all players on restart XYZ bug -
jasperschellekens - 13.01.2018
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 код:
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]);
Re: SAMP save all players on restart XYZ bug -
JaKe Elite - 13.01.2018
Why are you saving a position as integer? It is suppose to be saved as float.
Re: SAMP save all players on restart XYZ bug -
jasperschellekens - 14.01.2018
Quote:
Originally Posted by JaKe Elite
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.