A little question about the " && " - 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: A little question about the " && " (
/showthread.php?tid=294221)
A little question about the " && " -
American - 31.10.2011
Hey, I have this:
pawn Код:
if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detective"; }
else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Lawyer"; }
else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Drugs Dealer"; }
else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Car Jacker"; }
else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Gun Dealer"; }
else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Taxi Driver"; }
else if(PlayerInfo[targetid][pJobBalloon] == 11) { ballooner = "Balloon Launcher "; }
else { jtext = "None"; }
And I want to add " && " so the script know that there is an and for ( Balloon Launcher ) on this:
I tried this:
pawn Код:
else { jtext = "None"; } && { ballooner = "BallonLauncher" }
Is it right? If it's wrong, what is the right way to do it?
Re: A little question about the " && " -
American - 31.10.2011
I've made it like this:
pawn Код:
else
{
jtext = "None",
ballooner = "BallonLauncher";
}
I will see if it works or not

.