Need help on it. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help on it. (
/showthread.php?tid=265265)
Need help on it. -
Cenation - 30.06.2011
Код:
forward AutoPaintChange();
Код:
SetTimer("AutoPaintChange",3000,true);
Код:
public AutoPaintChange()
{
new vehicleid;
ChangeVehicleColor(vehicleid, -1, -1);
return 1;
}
i have created this script and it is not working......
even it is blocking other commands...
Re: Need help on it. -
Sasino97 - 30.06.2011
Quote:
Originally Posted by Cenation
Код:
forward AutoPaintChange();
Код:
SetTimer("AutoPaintChange",3000,true);
Код:
public AutoPaintChange()
{
new vehicleid;
ChangeVehicleColor(vehicleid, -1, -1);
return 1;
}
i have created this script and it is not working......
even it is blocking other commands...
|
With the code you want to randomize the colors of all the cars?
It won't work. This will:
pawn Код:
SetTimer("AutoPaintChange",3000,true);
pawn Код:
public AutoPaintChange()
{
for(new vehicleid=0;vehicleid<MAX_VEHICLES;vehicleid++)
{
ChangeVehicleColor(vehicleid, -1, -1);
}
return 1;
}
Re: Need help on it. -
Wesley221 - 30.06.2011
Edit: late
-
Cenation - 30.06.2011
ty Sasino

...

bro of who ever... hehe :P
its not working.. it makes all car black...
Re: Need help on it. -
Sasino97 - 30.06.2011
Quote:
Originally Posted by Cenation
its not working.. it makes all car black...
|
pawn Код:
public AutoPaintChange()
{
for(new vehicleid=0;vehicleid<MAX_VEHICLES;vehicleid++)
{
ChangeVehicleColor(vehicleid, random(120), random(120));
}
return 1;
}
Re: Need help on it. -
Cenation - 30.06.2011
Cool it is working...

really... Sino's are intelligent..
Sasino and Garsino both are intelligent