24.07.2009, 15:59
Heres the error.
C:\Documents and Settings\Administrator\Desktop\samp\gamemodes\larp .pwn(20712) : error 001: expected token: ")", but found "{"
What i want to happen, when the player is at (playerTopoint) and /duty, they get an extinquisher and armour and health
line 20712 =
Just below PlayerTopoint
C:\Documents and Settings\Administrator\Desktop\samp\gamemodes\larp .pwn(20712) : error 001: expected token: ")", but found "{"
What i want to happen, when the player is at (playerTopoint) and /duty, they get an extinquisher and armour and health
Код:
else if(PlayerInfo[playerid][pMember] == 11 ||PlayerInfo[playerid][pLeader] == 11) if (PlayerToPoint(3, playerid,-1663.4292,14.4364,300.5113) { SendClientMessage(playerid, COLOR_WHITE, "* You are now On Duty with your firefighter Job and will receive Fire Hazard calls."); JobDuty[playerid] = 1; Medics += 1; GetPlayerName(playerid,sendername,sizeof(sendername)); SafeGivePlayerWeapon(playerid, 36, 65000); SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); format(string, sizeof(string), "[Advert] Firefighter %s is On Duty, /call 911 if you have seen any fire hazards!", sendername); OOCNews(COLOR_FIREMAN,string); } }
Код:
{