SAMP save all players on restart XYZ bug
#1

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]); 
Reply
#2

Why are you saving a position as integer? It is suppose to be saved as float.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)