Loading player position not working. - 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: Loading player position not working. (
/showthread.php?tid=587050)
Loading player position not working. -
finelaq - 27.08.2015
Hello!
I am creating roleplay gamemode and i have a problem...
Problem is that the player position is not loading, but everything else is.
Player position is saved in .ini file but it won't load.
pawn Код:
public loaduser_user(playerid, name[], value[])
{
INI_String("Pass", pInfo[playerid][Pass],129);
INI_Int("Money", pInfo[playerid][Money]);
INI_Float("PosX", pInfo[playerid][Pos][0]);
INI_Float("PosY", pInfo[playerid][Pos][1]);
INI_Float("PosZ", pInfo[playerid][Pos][2]);
INI_Float("PosA", pInfo[playerid][Pos][3]);
printf("X: %f | Y: %f | Z: %f | Money: %d$", pInfo[playerid][Pos][0], pInfo[playerid][Pos][1], pInfo[playerid][Pos][2], pInfo[playerid][Money]);
return 1;
}
So i printed out the cordinates and money.
I got:
X: 0.000000 | Y: 0.000000 | Z: 0.000000 | Money: 63634_
Why is this not working? I have no errors.
Re: Loading player position not working. -
nezo2001 - 27.08.2015
Does it save probably?
Re: Loading player position not working. -
Dorito - 27.08.2015
Could you please show us the function that saves the user when they disconnect?