pInfo problem (small one +rep)
#1

I have problem with PlayerInfo... Even I made it etc, it's still not reconizing it....
Code:
Quote:

enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];

Error lines:
Quote:

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;
}

Errors:
Quote:

D:\Igre\SAMP Serveri\0.3c\gamemodes\ProScript.pwn(75) : error 017: undefined symbol "PlayerInfo"
D:\Igre\SAMP Serveri\0.3c\gamemodes\ProScript.pwn(75) : warning 215: expression has no effect
D:\Igre\SAMP Serveri\0.3c\gamemodes\ProScript.pwn(75) : error 001: expected token: ";", but found "]"
D:\Igre\SAMP Serveri\0.3c\gamemodes\ProScript.pwn(75) : error 029: invalid expression, assumed zero
D:\Igre\SAMP Serveri\0.3c\gamemodes\ProScript.pwn(75) : fatal error 107: too many error messages on one line

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)