Cant Save Player Cordinates
#1

Код:
public OnPlayerDisconnect(playerid, reason)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    GetPlayerPos(playerid, Float:PlayerInfo[playerid][pX], Float:PlayerInfo[playerid][pY], Float:PlayerInfo[playerid][pZ]);
    format(file, sizeof(file), SERVER_USER_FILE, name);
    if(gPlayerLogged[playerid] == 1)
    {
        dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]);
        dini_IntSet(file, "Money", PlayerInfo[playerid][pCash]);
        dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]);
        dini_IntSet(file, "X",PlayerInfo[playerid][pX]);
        dini_IntSet(file, "Y",PlayerInfo[playerid][pY]);
        dini_IntSet(file, "Z",PlayerInfo[playerid][pZ]);
        
    }
    gPlayerLogged[playerid] = 0;
    return 1;
}
X, Y, and Z are saved but too high value
example

X=1152845889
Y=-992376736
Z=1096335360
Reply


Messages In This Thread
Cant Save Player Cordinates - by omario - 13.07.2012, 05:52
Re: Cant Save Player Cordinates - by Vince - 13.07.2012, 08:06
Re: Cant Save Player Cordinates - by omario - 13.07.2012, 08:24
Re: Cant Save Player Cordinates - by omario - 13.07.2012, 08:36
Re: Cant Save Player Cordinates - by Warfish - 13.07.2012, 09:04

Forum Jump:


Users browsing this thread: 1 Guest(s)