Bracket error? :@
#1

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

Код:
			  	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);
			  }
			}
line 20712 =
Код:
	    {
Just below PlayerTopoint
Reply
#2

pawn Код:
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);
              }
            }
Ignoring the bad formatting.
Reply
#3

see this line...you have forgotten to add one more ")"
I corrected it.
pawn Код:
if (PlayerToPoint(3, playerid,-1663.4292,14.4364,300.5113))
        {
Thank You
-Abhinav
Reply
#4

Quote:
Originally Posted by ۞●•λвнiиаv•●۞
see this line...you have forgotten to add one more ")"
I corrected it.
pawn Код:
if (PlayerToPoint(3, playerid,-1663.4292,14.4364,300.5113))
        {
Thank You
-Abhinav
This worked, thanks

@ Clumx, yours didnt, sorry
Reply
#5

Quote:
Originally Posted by widowmkr
Quote:
Originally Posted by ۞●•λвнiиаv•●۞
see this line...you have forgotten to add one more ")"
I corrected it.
pawn Код:
if (PlayerToPoint(3, playerid,-1663.4292,14.4364,300.5113))
        {
Thank You
-Abhinav
This worked, thanks

@ Clumx, yours didnt, sorry
Good. Now, please add [SOLVED] in from of this topic.

Thank You
-Abhinav (ALWAYS HAPPY TO HELP)
PM ME IF PERSONAL HELP IS NEEDED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)