25.04.2012, 09:36
I keep getting this error when i compile, but everything ok
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NR-RP.pwn(28327) : error 017: undefined symbol "string"
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NR-RP.pwn(28327) : error 017: undefined symbol "string"
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NR-RP.pwn(28327) : error 029: invalid expression, assumed zero
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NR-RP.pwn(28327) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
line with error 28327
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NR-RP.pwn(28327) : error 017: undefined symbol "string"
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NR-RP.pwn(28327) : error 017: undefined symbol "string"
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NR-RP.pwn(28327) : error 029: invalid expression, assumed zero
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NR-RP.pwn(28327) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Код:
CMD:admins(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 2) { SendClientMessageEx(playerid, COLOR_GRAD1, "Admins Online:"); foreach(Player, i) { if(PlayerInfo[i][pAdmin] >= 2 && PlayerInfo[i][pAdmin] <= PlayerInfo[playerid][pAdmin]) { new string[128]; new playern[MAX_PLAYER_NAME]; GetPlayerName(i, playern, sizeof(playern)); if(PlayerInfo[i][pAdmin] == 2) { format(string, sizeof(string), "[Junior Admin]: %s", GetPlayerNameEx(i)); } else if(PlayerInfo[i][pAdmin] == 3) { format(string, sizeof(string), "[General Admin] %s", GetPlayerNameEx(i)); } else if(PlayerInfo[i][pAdmin] == 4) { format(string, sizeof(string), "[Senior Admin]: %s", GetPlayerNameEx(i)); } else if(PlayerInfo[i][pAdmin] == 1337) { format(string, sizeof(string), "[Head Admin]: %s", GetPlayerNameEx(i)); } else if(PlayerInfo[i][pAdmin] == 1338) { format(string, sizeof(string), "[Server Manager]: %s", GetPlayerNameEx(i)); } else if(PlayerInfo[i][pAdmin] == 99998) { format(string, sizeof(string), "[Co-Executive Admin]: %s", GetPlayerNameEx(i)); } else if(PlayerInfo[i][pAdmin] == 99999) { format(string, sizeof(string), "[Executive Admin]: %s", GetPlayerNameEx(i)); } } else { format(string, sizeof(string), "[Undefined Admin] (%d): %s", PlayerInfo[i][pAdmin], GetPlayerNameEx(i)); } } if(PlayerInfo[i][pBanAppealer]) strcat(string, " [BA]"); if(PlayerInfo[i][pShopTech]) strcat(string, " [ST]"); if(PlayerInfo[i][pUndercover]) strcat(string, " [UC]"); if(PlayerInfo[i][pFactionModerator]) strcat(string, " [FMOD]"); if(PlayerInfo[i][pGangModerator]) strcat(string, " [GMOD]"); if(PlayerInfo[i][pTogReports]) strcat(string, " [SPEC MODE]"); SendClientMessageEx(playerid, COLOR_GRAD2, string); } } } else { SendClientMessageEx(playerid, COLOR_GRAD1, "If you have questions regarding gameplay, or the server use /newb."); SendClientMessageEx(playerid, COLOR_GRAD1, "If you see suspicious happenings/players /report [id] [reason]."); } return 1; }
Код:
format(string, sizeof(string), "[Undefined Admin] (%d): %s", PlayerInfo[i][pAdmin], GetPlayerNameEx(i));