Condition issue - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Condition issue (
/showthread.php?tid=584467)
Condition issue -
cnoopers - 05.08.2015
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?
Re: Condition issue -
SpikeSpigel - 05.08.2015
Have you tried to use && in place of || ?
Re: Condition issue -
cnoopers - 05.08.2015
sure i tried, even with only one vehicleid and models between && or ||
Re: Condition issue -
jamesbond007 - 05.08.2015
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?
Re: Condition issue -
SpikeSpigel - 05.08.2015
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 ?
Re: Condition issue -
cnoopers - 05.08.2015
omg, u right. messed up wit model, my fault. thanks for help, catch some of this rep