05.03.2018, 04:34
Getting this error in a part where there aren't even any arrays.
Here's the enum
Код:
stock SetPlayerLevelName(playerid) { if(PlayerInfo[playerid][pLevel] == 1) PlayerInfo[playerid][pLevelName] = "Private I"; if(PlayerInfo[playerid][pLevel] == 2) PlayerInfo[playerid][pLevelName] = "Private II"; if(PlayerInfo[playerid][pLevel] == 3) PlayerInfo[playerid][pLevelName] = "Private III"; if(PlayerInfo[playerid][pLevel] == 4) PlayerInfo[playerid][pLevelName] = "Private First Class"; if(PlayerInfo[playerid][pLevel] == 5) PlayerInfo[playerid][pLevelName] = "Specialist"; if(PlayerInfo[playerid][pLevel] == 6) PlayerInfo[playerid][pLevelName] = "Corporal"; if(PlayerInfo[playerid][pLevel] == 7) PlayerInfo[playerid][pLevelName] = "Sergeant"; if(PlayerInfo[playerid][pLevel] == 8) PlayerInfo[playerid][pLevelName] = "Staff Sergeant"; if(PlayerInfo[playerid][pLevel] == 9) PlayerInfo[playerid][pLevelName] = "Sergeant First Class"; if(PlayerInfo[playerid][pLevel] == 10) PlayerInfo[playerid][pLevelName] = "Master Sergeant"; if(PlayerInfo[playerid][pLevel] == 11) PlayerInfo[playerid][pLevelName] = "First Sergeant"; if(PlayerInfo[playerid][pLevel] == 12) PlayerInfo[playerid][pLevelName] = "Sergeant Major"; if(PlayerInfo[playerid][pLevel] == 13) PlayerInfo[playerid][pLevelName] = "Command Sergeant Major"; if(PlayerInfo[playerid][pLevel] == 14) PlayerInfo[playerid][pLevelName] = "Sergeant Major of the Army"; if(PlayerInfo[playerid][pLevel] == 15) PlayerInfo[playerid][pLevelName] = "Warrant Officer"; if(PlayerInfo[playerid][pLevel] == 16) PlayerInfo[playerid][pLevelName] = "Chief Warrant Officer II"; if(PlayerInfo[playerid][pLevel] == 17) PlayerInfo[playerid][pLevelName] = "Chief Warrant Officer III"; if(PlayerInfo[playerid][pLevel] == 18) PlayerInfo[playerid][pLevelName] = "Chief Warrant Officer IV"; if(PlayerInfo[playerid][pLevel] == 19) PlayerInfo[playerid][pLevelName] = "Chief Warrant Officer V"; if(PlayerInfo[playerid][pLevel] == 20) PlayerInfo[playerid][pLevelName] = "Second Lieutenant"; if(PlayerInfo[playerid][pLevel] == 21) PlayerInfo[playerid][pLevelName] = "First Lieutenant"; if(PlayerInfo[playerid][pLevel] == 22) PlayerInfo[playerid][pLevelName] = "Captain"; if(PlayerInfo[playerid][pLevel] == 23) PlayerInfo[playerid][pLevelName] = "Major"; if(PlayerInfo[playerid][pLevel] == 24) PlayerInfo[playerid][pLevelName] = "Lieutenant Colonel"; if(PlayerInfo[playerid][pLevel] == 25) PlayerInfo[playerid][pLevelName] = "Colonel"; if(PlayerInfo[playerid][pLevel] == 26) PlayerInfo[playerid][pLevelName] = "Brigadier General"; if(PlayerInfo[playerid][pLevel] == 27) PlayerInfo[playerid][pLevelName] = "Major General"; if(PlayerInfo[playerid][pLevel] == 28) PlayerInfo[playerid][pLevelName] = "Lieutenant General"; if(PlayerInfo[playerid][pLevel] == 29) PlayerInfo[playerid][pLevelName] = "General"; if(PlayerInfo[playerid][pLevel] == 30) PlayerInfo[playerid][pLevelName] = "General of the Army"; }
Код:
enum pInfo { pPass, pCash, pAdmin, pKills, pDeaths, pVIP, pXP, pLevel, pLevelName[64], pTeam }