24.11.2012, 20:23
Код:
16419 if (strcmp(cmd, "/admins", true) == 0) 16420 { 16421 new count = 0,text[256]; 16422 for(new i = 0; i < MAX_PLAYERS; i++) 16423 { 16424 if (IsPlayerConnected(i)) 16425 { 16426 if(AccountInfo[i][AdminLevel] >= 1 && AccountInfo[i][AdminLevel] <= 5 && Hide[i] == 0) 16427 { 16428 new playername[MAX_PLAYER_NAME]; 16429 GetPlayerName(i, playername, sizeof(playername)); 16430 format(string, 64, "%s | Level: %d\n",playername, AccountInfo[i][AdminLevel]); 16431 strcat(text,string); 16432 count++; 16433 } 16434 } 16435 } 16436 if (count == 0) SendClientMessage(playerid,LILA,"Server: No Admins online yet."); 16437 ShowPlayerDialog(playerid,2563,DIALOG_STYLE_LIST,"Admins Online:"text,"OK",""); 16438 return true; 16439 }
Errors:
C:\Users\Billy\Desktop\Server 0.3e-R2\gamemodes\Server.pwn(16437) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Billy\Desktop\Server 0.3e-R2\gamemodes\Server.pwn(16437) : warning 215: expression has no effect
C:\Users\Billy\Desktop\Server 0.3e-R2\gamemodes\Server.pwn(16437) : warning 215: expression has no effect
C:\Users\Billy\Desktop\Server 0.3e-R2\gamemodes\Server.pwn(16437) : warning 215: expression has no effect
C:\Users\Billy\Desktop\Server 0.3e-R2\gamemodes\Server.pwn(16437) : error 001: expected token: ";", but found ")"
C:\Users\Billy\Desktop\Server 0.3e-R2\gamemodes\Server.pwn(16437) : error 029: invalid expression, assumed zero
C:\Users\Billy\Desktop\Server 0.3e-R2\gamemodes\Server.pwn(16437) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.