09.05.2016, 08:03
Can somene tell me why whole score won't load. If i had 70 score when i left game it will load 10.
This is my OnPlayerDisconnect
And thisis OnPlayerConnect
And this is OnPlayerSpawn
This is enum
This is my OnPlayerDisconnect
Код:
new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteInt(File,"Cash",GetPlayerMoney(playerid)); INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]); INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]); INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); INI_WriteInt(File,"Score",PlayerInfo[playerid][pScore]); INI_WriteInt(File,"VIP",PlayerInfo[playerid][pVIP]); INI_Close(File);
Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
Код:
GivePlayerScore(playerid, PlayerInfo[playerid][pScore]);
Код:
enum pInfo { pPass, pCash, pAdmin, pKills, pDeaths, pScore, pVIP }