23.11.2010, 12:21
Код:
if (strcmp(cmdtext, "/admins", true) == 0) { new count = 0; SendClientMessage(playerid, 0xFFFFFFAA, "Administrators Online:"); for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(adminlevel[i] <= 3 && adminlevel[i] <= 5 ) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 128, "%s (ID:%i)", sendername, i); SendClientMessage(playerid, COLOR_WHITE, string); count++; } } } if (count == 0) SendClientMessage(playerid, COLOR_WHITE,"There are no admins online.Try /mods ,If there are any mods online."); return 1; }
Код:
C:\Documents and Settings\Administrateur\Bureau\BWS\gamemodes\[BWS]Mode.pwn(264) : error 017: undefined symbol "adminlevel" C:\Documents and Settings\Administrateur\Bureau\BWS\gamemodes\[BWS]Mode.pwn(264) : warning 215: expression has no effect C:\Documents and Settings\Administrateur\Bureau\BWS\gamemodes\[BWS]Mode.pwn(264) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Administrateur\Bureau\BWS\gamemodes\[BWS]Mode.pwn(264) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrateur\Bureau\BWS\gamemodes\[BWS]Mode.pwn(264) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.