is there a way to shorten this?
#6

Quote:
Originally Posted by Kitten
Посмотреть сообщение
thanks i never notice you can do that l l

Yeah, || can be used for a lot of stuff.

Ex:

pawn Код:
//add 10x Nitro if the player is in a car. Might be called on a command.
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(vehicle == 0 || vehicle == 12 || vehicle == 89)
{
    AddVehicleComponent(vehicle, 1010);
}


EDIT:

Oh, yeah, damn forgot about !=
Reply


Messages In This Thread
is there a way to shorten this? - by Kitten - 16.10.2010, 23:15
Re: is there a way to shorten this? - by MBX97 - 16.10.2010, 23:18
Re: is there a way to shorten this? - by Las Venturas CNR - 16.10.2010, 23:18
Re: is there a way to shorten this? - by Kitten - 16.10.2010, 23:20
Re: is there a way to shorten this? - by JaTochNietDan - 16.10.2010, 23:21
Re: is there a way to shorten this? - by Las Venturas CNR - 16.10.2010, 23:22
Re: is there a way to shorten this? - by Kitten - 16.10.2010, 23:23
Re: is there a way to shorten this? - by Kitten - 16.10.2010, 23:36
Re: is there a way to shorten this? - by JaTochNietDan - 16.10.2010, 23:38
Re: is there a way to shorten this? - by Ritchie999 - 16.10.2010, 23:39

Forum Jump:


Users browsing this thread: 2 Guest(s)