05.10.2013, 22:56
here is the errors
and the script lines are here :
Код:
C:\Users\Mazen\Desktop\DLRP v1.1.193 - BETA TEST\gamemodes\DLRP.pwn(39038) : error 003: declaration of a local variable must appear in a compound block C:\Users\Mazen\Desktop\DLRP v1.1.193 - BETA TEST\gamemodes\DLRP.pwn(39038) : error 017: undefined symbol "string" C:\Users\Mazen\Desktop\DLRP v1.1.193 - BETA TEST\gamemodes\DLRP.pwn(39038) : warning 215: expression has no effect C:\Users\Mazen\Desktop\DLRP v1.1.193 - BETA TEST\gamemodes\DLRP.pwn(39038) : error 001: expected token: ";", but found "]" C:\Users\Mazen\Desktop\DLRP v1.1.193 - BETA TEST\gamemodes\DLRP.pwn(39038) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
if(PlayerInfo[playerid][pAdminDuty] == 1) new string[124]; format(string, sizeof(string), "%s (ID %d - %s) is now on-duty as a Level %d Admin.");(PlayerInfo[playerid][pAdminName], playerid, GetPlayerNameEx(playerid), PlayerInfo[playerid][pAdmin]); ABroadCast(COLOR_WHITE, string, 1); SendClientMessage(playerid, COLOR_YELLOW, "You're now on-duty as admin and have access to all your commands, see /ah."); SetPlayerName(playerid, PlayerInfo[playerid][pAdminName]); } } else SendClientMessage(playerid, COLOR_WHITE, "You need an admin name to go on-duty. Contact a Level 5+ Admin to have your admin name set."); } else SendClientMessage(playerid, COLOR_GRAD1, "You're not authorized to use that command!"); return 1; }