06.04.2011, 16:19
Код:
D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(234) : error 017: undefined symbol "playerinfo" D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(234) : warning 215: expression has no effect D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(234) : error 001: expected token: ";", but found "]" D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(234) : error 029: invalid expression, assumed zero D:\Rockstar Games\SAMP SERVER\gamemodes\gm.pwn(234) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
if(!strcmp(cmdtext, "/admins"))
{
new string[128], playername[MAX_PLAYER_NAME], text[40];
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(i, playername, sizeof(playername));
if(playerinfo[i][AdminLevel] == 1) { text = "Level 1" }
if(playerinfo[i][AdminLevel] == 2) { text = "Level 2" }
if(playerinfo[i][AdminLevel] == 3) { text = "Level 3" }
if(playerinfo[i][AdminLevel] == 4) { text = "Level 4" }
if(playerinfo[i][AdminLevel] == 5) { text = "Level 5" }
if(playerinfo[i][AdminLevel] == 6) { text = "Level 6" }
if(playerinfo[i][AdminLevel] == 7) { text = "Level 7" }
if(playerinfo[i][AdminLevel] == 8) { text = "Level 8" }
if(playerinfo[i][AdminLevel] == 9) { text = "Level 9" }
if(playerinfo[i][AdminLevel] == 10) { text = "Level 10" }
}
format(string, sizeof(string), "%s: %s", text, playername);
SendClientMessage(playerid, 0x00FF00FF, string);
return 1;
}