Get player position at OnPlayerDisconnect..
#1

Is it me.. or it doens't get the player positions at on disconnect?

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;
}
And X, Y, Z keeps at default coords when you register..

Thanks.
Reply


Messages In This Thread
Get player position at OnPlayerDisconnect.. - by The_Moddler - 03.12.2010, 00:44
Re: Get player position at OnPlayerDisconnect.. - by Celson - 03.12.2010, 00:55
Re: Get player position at OnPlayerDisconnect.. - by The_Moddler - 03.12.2010, 00:56

Forum Jump:


Users browsing this thread: 2 Guest(s)