arrays check
#1

I just want to know is posible array like new i[100];
if( vehicleid == since i[0] and to i[100] )
That do not need use if( vehicleid == since [0] || vehicleid == since [1]|| vehicleid == since [2].....vehicleid == since [100])
thanks in advance
Reply
#2

Looping ?
pawn Код:
for(new a=0; a < 100; a++)
{
if(vehicleid == since[a])
{
//CODE BLA BLA
}
}
Reply
#3

pawn Код:
if( vehicleid >= since[0] && vehicleid <= since[100] )
Reply
#4

^ Yeah. Ignore my one, it is just stupid . Looping ... *laughs*
Reply
#5

Thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)