Siren command
#6

Quote:
Originally Posted by Lajko1
Посмотреть сообщение
What am I trying to do is to conver this:
pawn Код:
if(GetPlayerVehicleID(vehicleid) != vehicle[0] || vehicle[1] || vehicle[2] || vehicle[3])
To something easier all those cars vehicle[0] - [4] are as undercover vehicles so how can I detect all those vehicles as Undercover so I don't need to do code like I posted above, because I want to add more cars like 10 so is there different way than doing vehicleid[1] || vehicleid[2]........vehicleid[6] vehicleid[7] ..... vehicleid[10] and so on I want all those cars detected as undercover cars.. so I can do only != UnderCoverCar) { code....}

Thanks for help.
The code I wrote above can hold up to 2000 vehicles (SA-MP does not support more).
Reply


Messages In This Thread
Siren command - by Lajko1 - 03.11.2013, 12:02
Re: Siren command - by papedo - 03.11.2013, 12:23
Re: Siren command - by AlonzoTorres - 03.11.2013, 12:25
Re: Siren command - by Tagathron - 03.11.2013, 12:25
Re: Siren command - by Lajko1 - 03.11.2013, 12:29
Re: Siren command - by AlonzoTorres - 03.11.2013, 12:31
Re: Siren command - by Lajko1 - 03.11.2013, 12:35
Re: Siren command - by Lajko1 - 03.11.2013, 12:44
Re: Siren command - by AlonzoTorres - 03.11.2013, 12:52
Re: Siren command - by Lajko1 - 03.11.2013, 13:04

Forum Jump:


Users browsing this thread: 2 Guest(s)