See This Please,2 CMD Error -
Dezzzy - 08.12.2014
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
Re: See This Please,2 CMD Error -
HY - 08.12.2014
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.
Re: See This Please,2 CMD Error -
Schneider - 08.12.2014
In both these IsPlayerInRangeOfPoint-lines you have a comma (,) at the end, remove them, that'll fix your errors.
Re: See This Please,2 CMD Error -
Beckett - 08.12.2014
You have a comma at the end of your IsPlayerInRangeOfPoint, after the coordinates.
Re: See This Please,2 CMD Error -
Dezzzy - 08.12.2014
yes thanks my mistake was
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
Re: See This Please,2 CMD Error -
Schneider - 08.12.2014
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
Re: See This Please,2 CMD Error -
HY - 08.12.2014
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.
Re: See This Please,2 CMD Error -
Dezzzy - 08.12.2014
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.
Re: See This Please,2 CMD Error -
Dezzzy - 08.12.2014
Answer Please
Re: See This Please,2 CMD Error -
Schneider - 08.12.2014
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);