SA-MP Forums Archive
Help here pls - 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: Help here pls (/showthread.php?tid=586218)



Help here pls - TenTen - 20.08.2015






+Rep if you helped me


Re: Help here pls - jlalt - 20.08.2015

Can you show line 1488?


Re: Help here pls - TenTen - 20.08.2015

Код:
ChangeVehicleColor(playerid, CarColors[rand][0], CarColors[rand][1]);



Re: Help here pls - thaKing - 20.08.2015

Why dont you just use?
Код:
new rand = random(200);
And still, I would use:
Код:
ChangeVehicleColor(playerid, rand[0], rand[1]);



Re: Help here pls - Mariciuc223 - 20.08.2015

Код:
ChangeVehicleColor(playerid, rand[0], rand[1]);
That's bullshit .. his initialiser it's not an array .. That will give him an compile error.. Look at that buddy .

Код:
ChangeVehicleColor(playerid, random(200-1)+1, random(200-1)+1);



Re: Help here pls - thaKing - 20.08.2015

Quote:
Originally Posted by Mariciuc223
Посмотреть сообщение
Код:
ChangeVehicleColor(playerid, rand[0], rand[1]);
That's bullshit .. his initialiser it's not an array .. That will give him an compile error.. Look at that buddy .

Код:
ChangeVehicleColor(playerid, random(200-1)+1, random(200-1)+1);
yeah, true. I didn't test it. Anyway, thanks for editing me.