A little question about the " && "
#1

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:
pawn Код:
else { jtext = "None"; }
I tried this:

pawn Код:
else { jtext = "None"; } && { ballooner = "BallonLauncher" }
Is it right? If it's wrong, what is the right way to do it?
Reply


Messages In This Thread
A little question about the " && " - by American - 31.10.2011, 19:16
Re: A little question about the " && " - by American - 31.10.2011, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)