STRING
#4

here is the errors
Код:
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.
and the script lines are here :
Код:
				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;
}
Reply


Messages In This Thread
STRING - by NewbieHelper - 05.10.2013, 22:32
Re: STRING - by DobbysGamertag - 05.10.2013, 22:34
Re: STRING - by NewbieHelper - 05.10.2013, 22:37
Re: STRING - by NewbieHelper - 05.10.2013, 22:56
Re: STRING - by Jefff - 05.10.2013, 22:59
Re: STRING - by NewbieHelper - 06.10.2013, 10:48
Re: STRING - by Danialdano - 06.10.2013, 11:33
Re: STRING - by DanishHaq - 06.10.2013, 12:06
Re: STRING - by NewbieHelper - 06.10.2013, 13:45
Re: STRING - by Danialdano - 06.10.2013, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)