15.09.2012, 16:25
Try to put your enum under OngameModeInt not inside it, if you already did that then I recommend you to check Kush's tutorial and don't just copy and paste everything better to understand not to copy and paste
https://sampforum.blast.hk/showthread.php?tid=273088
Anyways not sure if in your script you got spaces :-
And,
https://sampforum.blast.hk/showthread.php?tid=273088
Anyways not sure if in your script you got spaces :-
Код:
enum pInfo { pPass, pCash, pAdmin, pKills, pDeaths } new PlayerInfo[MAX_PLAYERS][pInfo];
Код:
public OnPlayerDisconnect(playerid, reason) { 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_Close(File); return 1; }