save score
#4

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name); // Change path
    if(gPlayerLogged[playerid] == 1) // Change your is player logged in
    {
        dini_IntSet(file, "Score", PInfo[playerid][pScore]); // Change to the settings you made in the enum
    }
    return 1;
}
Reply


Messages In This Thread
save score - by WorldPro - 10.04.2014, 20:56
Re: save score - by DerickClark - 10.04.2014, 21:03
Re: save score - by WorldPro - 11.04.2014, 13:09
Re: save score - by Affan - 11.04.2014, 14:16
Re: save score - by DerickClark - 11.04.2014, 22:19
Re: save score - by WorldPro - 12.04.2014, 10:27
Re: save score - by Equuuuin0X - 12.04.2014, 11:56
Re: save score - by WorldPro - 12.04.2014, 13:55
Re: save score - by Equuuuin0X - 12.04.2014, 13:58
Re: save score - by WorldPro - 12.04.2014, 14:01

Forum Jump:


Users browsing this thread: 3 Guest(s)