SA-MP Forums Archive
my bad work - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: my bad work (/showthread.php?tid=549713)



my bad work - Dezzzy - 08.12.2014

Код HTML:
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);
Код HTML:
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.
wtf big sorrys


Re: my bad work - Dziugsas - 08.12.2014

pawn Код:
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)



Re: my bad work - BroZeus - 08.12.2014

You cannot have a if inside other if ._.
use this
pawn Код:
if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16 || iPlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15  || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12)
One more thing i noticed a ; in front of if line, that should not be there, you cannot put a ; in front of if statement...

EDIT: Too late reply.. i was typing while the above person posted..


Re: my bad work - ATGOggy - 08.12.2014

Show us the previous lines


Re: my bad work - Schneider - 08.12.2014

The answer was already given to you in your other topic about this same thing:
https://sampforum.blast.hk/showthread.php?tid=549707