Condition issue
#1

hi

somehow it aint work
Код:
if(vehicleid == 506 || vehicleid == 451 || vehicleid == 415 || vehicleid == 411 || vehicleid == 480 || vehicleid == 541 || vehicleid == 429)
but another similar works fine as bitch on the streetz
Код:
if(vehicleid == mower[0] || vehicleid == mower[1] || vehicleid == mower[2] || vehicleid == mower[3])
why?
Reply
#2

Have you tried to use && in place of || ?
Reply
#3

sure i tried, even with only one vehicleid and models between && or ||
Reply
#4

well the error is clearly that your vehicleid's are wrong.. where the hell did u get 506 , 451, and others?

i think vehicle id's start from 0 and go up or somthing

did u confuse it with vehicle model?
Reply
#5

I don't think he confused 'em .. The car ids are from 400 to 600 .. so it's ok..

Btw, can you tell us what your problem is ? What isn't actually working ?
Reply
#6

omg, u right. messed up wit model, my fault. thanks for help, catch some of this rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)