03.12.2010, 00:44
Is it me.. or it doens't get the player positions at on disconnect?
Becouse I have this:
And X, Y, Z keeps at default coords when you register..
Thanks.
Becouse I have this:
pawn Код:
stock SaveStats(playerid)
{
if(pInfo[playerid][Logged] != 0)
{
new Float: X, Float: Y, Float: Z;
GetPlayerPos(playerid, X, Y, Z);
djSetInt(strformat("Accounts/%s.ini", GetPName(playerid)), "Score", GetPlayerScore(playerid));
djSetInt(strformat("Accounts/%s.ini", GetPName(playerid)), "Cash", GetPlayerMoney(playerid));
djSetFloat(strformat("Accounts/%s.ini", GetPName(playerid)), "PosX", X);
djSetFloat(strformat("Accounts/%s.ini", GetPName(playerid)), "PosY", Y);
djSetFloat(strformat("Accounts/%s.ini", GetPName(playerid)), "PosZ", Z);
}
return 1;
}
Thanks.