pInfo problem (small one +rep)
#7

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 :-

Код:
enum pInfo
{
   pPass,
   pCash,
   pAdmin,
   pKills,
   pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];
And,

Код:
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;
}
Reply


Messages In This Thread
pInfo problem (small one +rep) - by Twinklies - 15.09.2012, 15:55
Re: pInfo problem (small one +rep) - by RLGaming - 15.09.2012, 15:57
Re: pInfo problem (small one +rep) - by Twinklies - 15.09.2012, 15:58
Re: pInfo problem (small one +rep) - by Cxnnor - 15.09.2012, 16:00
Re: pInfo problem (small one +rep) - by RLGaming - 15.09.2012, 16:01
Re: pInfo problem (small one +rep) - by Sig Hansen - 15.09.2012, 16:01
Re: pInfo problem (small one +rep) - by gtakillerIV - 15.09.2012, 16:25
Re: pInfo problem (small one +rep) - by Lordzy - 15.09.2012, 16:29
Re: pInfo problem (small one +rep) - by gtakillerIV - 15.09.2012, 16:32

Forum Jump:


Users browsing this thread: 1 Guest(s)