15.09.2012, 15:55
I have problem with PlayerInfo... Even I made it etc, it's still not reconizing it....
Code:
Error lines:
Errors:
Code:
Quote:
enum pInfo { pPass, pCash, pAdmin, pKills, pDeaths } new PlayerInfo[MAX_PLAYERS][pInfo]; |
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; } |
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 |