error 017: undefined symbol
#3

Or you could do:

Код:
cmd:aduty(playerid, params[])
{
			new string[128];
		    switch(aDuty[playerid]) {
				case 0: {
				    aDuty[playerid] = 1;
					SetPlayerHealth(playerid, 999999);
					SetPlayerArmour(playerid, 999999);
					format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s is now on administrative duty.", GetPlayerNameEx(playerid));
					BroadCast(COLOR_GREEN, "   A administrative team member is now on duty.");
					SetPlayerColor(playerid,COLOR_GREEN);
					ABroadCast(COLOR_YELLOW, string, 4);
				}

				case 1: {
				    aDuty[playerid] = 0;
					SetPlayerHealth(playerid, 100);
					SetPlayerArmour(playerid, 100);
					format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s is now off administrative duty.", GetPlayerNameEx(playerid));
					SetPlayerColor(playerid,TEAM_HIT_COLOR);
					ABroadCast(COLOR_YELLOW, string, 4);
			}
		}
	return 1;
}
Reply


Messages In This Thread
error 017: undefined symbol - by b00m112 - 22.09.2014, 15:42
Re: error 017: undefined symbol - by MrCallum - 22.09.2014, 15:44
Re: error 017: undefined symbol - by MrCallum - 22.09.2014, 15:46
Re: error 017: undefined symbol - by KayJ - 22.09.2014, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)