SA-MP Forums Archive
It doesn't save pos - 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: It doesn't save pos (/showthread.php?tid=438513)



It doesn't save pos - PrezyI - 20.05.2013

I just putted in the save position and it doesn't save it when you logout.

http://pastebin.com/E5CWb7LC


AW: It doesn't save pos - HurtLocker - 20.05.2013

Add these lines inside public loadaccount_user(playerid, name[], value[]):
pawn Код:
INI_Float("PositionX",PosX[playerid]);
INI_Float("PositionY",PosY[playerid]);
INI_Float("PositionZ",PosZ[playerid]);
INI_Float("Angle",Angle[playerid]);
INI_Int("Interior", Interior[playerid]);
INI_Int("VirtualWorld", VirtualWorld[playerid]);
and delete the loaduserposition callback.

EDIT: i wrote wrong variables before