See This Please,2 CMD Error
#1

Hi Guys I made This System Today And I have 2 warninrgs .. So This Is Code (picture)


And I have This Errors

HTML Code:
C:\Users\Gigi\Desktop\Fuliox-Rp\gamemodes\Fuliox-Rp.pwn(36780) : error 029: invalid expression, assumed zero
C:\Users\Gigi\Desktop\Fuliox-Rp\gamemodes\Fuliox-Rp.pwn(36800) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Errors Line 36780
HTML Code:
if(!IsPlayerInRangeOfPoint(playerid,10,2453.5869,-1984.2065,13.5540,))
Error Line 36800
HTML Code:
if(!IsPlayerInRangeOfPoint(playerid,10,2453.5869,-1984.2065,13.5540,))
Answer If You Know +++Rep
Reply
#2

pawn Code:
if(!IsPlayerInRangeOfPoint(playerid,10,2453.5869,-1984.2065,13.5540,))
See error? that " , " . It's cause error.

For first error:

pawn Code:
if(!IsPlayerInRangeOfPoint(playerid,10,2453.5869,-1984.2065,13.5540))
For second error:

pawn Code:
if(!IsPlayerInRangeOfPoint(playerid,10,2453.5869,-1984.2065,13.5540))
You can look here: IsPlayerInRangeOfPoint.
Reply
#3

In both these IsPlayerInRangeOfPoint-lines you have a comma (,) at the end, remove them, that'll fix your errors.
Reply
#4

You have a comma at the end of your IsPlayerInRangeOfPoint, after the coordinates.
Reply
#5

yes thanks my mistake was
HTML Code:
,
but can u tell me how to make this ...
HTML Code:
if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18)
For 4 Fraction More..

Here Was Rifa .. i want rifa, aztec, grove,vagos ,ballas ... thanks if u asnwer
Reply
#6

Continue that line:
pawn Code:
if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 20  || PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
Just add the corrent numbers
Reply
#7

What you want? This command can be used by more teams?

If yes, then..

pawn Code:
if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == FactionID || PlayerInfo[playerid][pMember] == FactionID || // Continue (.....)
Don't forget at final to add: ' ) ' without '.

EDIT: // Again, I didn't saw above guy.
Reply
#8

line
HTML Code:
if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18) || if(PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16) || if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15)  || if(PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 13) || if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12);
Errrors :::
HTML Code:
C:\Users\Gigi\Desktop\Fuliox-Rp\gamemodes\Fuliox-Rp.pwn(36778) : error 029: invalid expression, assumed zero
C:\Users\Gigi\Desktop\Fuliox-Rp\gamemodes\Fuliox-Rp.pwn(36778) : warning 215: expression has no effect
C:\Users\Gigi\Desktop\Fuliox-Rp\gamemodes\Fuliox-Rp.pwn(36778) : error 001: expected token: ";", but found "if"
C:\Users\Gigi\Desktop\Fuliox-Rp\gamemodes\Fuliox-Rp.pwn(36778) : error 029: invalid expression, assumed zero
C:\Users\Gigi\Desktop\Fuliox-Rp\gamemodes\Fuliox-Rp.pwn(36778) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Reply
#9

Answer Please
Reply
#10

You only need to have 'if(' in that line once.

pawn Code:
if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15  || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)