10.12.2009, 23:24
How do I check if something is between one thing and another?
Like I wanna check If a vehicles ID is between 0 and 15 for example, how do I do that?
No, I'm not looking for a code that use all vehicles above 0, I want to be able to
like doing,
from 0-15, from 15-25, from 50-75, without the first one interrupting the other and so on.
Like that, but that wont work, but if you get what i mean.
( will give this error:
)
Like I wanna check If a vehicles ID is between 0 and 15 for example, how do I do that?
No, I'm not looking for a code that use all vehicles above 0, I want to be able to
like doing,
from 0-15, from 15-25, from 50-75, without the first one interrupting the other and so on.
pawn Код:
if(GetPlayerVehicleID(playerid) >=0 <=10){
( will give this error:
Код:
warning 205: redundant code: constant expression is zero