Team only vehicles, Y U NO WORK!?
#10

Quote:
Originally Posted by CuervO
Посмотреть сообщение
it has to do with the way you do your checks... Cant really show you because im in the phone. Check my сatest replies, i solved tye very same thing a few hours ago, but basically you cant do
Код:
var == 1 || 2 || 3
you must do var == 1 || var == 2 ... Etc
Just noticed it as you replied, seeing that one line was longer..
Seems like I only did Grovestreet right and messed up the rest

What would be the best way to make this shorter:

Код HTML:
else if(CarCheck == Cars[Rifa][0] || CarCheck == Cars[Rifa][1] || CarCheck == Cars[Rifa][2] || CarCheck == Cars[Rifa][3] || CarCheck == Cars[Rifa][4] || CarCheck == Cars[Rifa][5])
Like Cars[Rifa][0...10] or something?

Gonna try out if it works now.

EDIT: It works
Reply


Messages In This Thread
Team only vehicles, Y U NO WORK!? - by AnthonyTimmers - 14.02.2014, 17:21
Re: Team only vehicles, Y U NO WORK!? - by CuervO - 14.02.2014, 17:24
Re: Team only vehicles, Y U NO WORK!? - by AnthonyTimmers - 14.02.2014, 19:18
Re: Team only vehicles, Y U NO WORK!? - by CuervO - 14.02.2014, 19:28
Re: Team only vehicles, Y U NO WORK!? - by AnthonyTimmers - 14.02.2014, 19:32
Re: Team only vehicles, Y U NO WORK!? - by CuervO - 14.02.2014, 19:37
Re: Team only vehicles, Y U NO WORK!? - by AnthonyTimmers - 14.02.2014, 19:41
Re: Team only vehicles, Y U NO WORK!? - by CuervO - 14.02.2014, 19:43
Re: Team only vehicles, Y U NO WORK!? - by AnthonyTimmers - 14.02.2014, 19:46
Re: Team only vehicles, Y U NO WORK!? - by AnthonyTimmers - 14.02.2014, 19:48

Forum Jump:


Users browsing this thread: 1 Guest(s)