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; } |
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 |
enum pInfo { pPass, pCash, pAdmin, pKills, pDeaths }; |
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;
}
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; }
With or without it, I am still receiving same error.
Edit: resolved. The problem was I putted in before the #else.... :/ Thanks anyway. |