Problem
#4

pawn Code:
public OnPlayerDisconnect(playerid, reason)
{
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name);
    if(gPlayerLogged[playerid] == 1)
    {
        dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]);
        dini_IntSet(file, "Cash", PlayerInfo[playerid][pCash]);
        dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]);
    }
    gPlayerLogged[playerid] = 0;
}
return 1;

There, try it.
Reply


Messages In This Thread
Problem - by antonio600x - 28.08.2011, 16:04
Re: Problem - by PhoenixB - 28.08.2011, 16:06
Re: Problem - by antonio600x - 28.08.2011, 16:08
Re: Problem - by PhoenixB - 28.08.2011, 16:11

Forum Jump:


Users browsing this thread: 1 Guest(s)