SA-MP Forums Archive
Cant get it done ....! - 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: Cant get it done ....! (/showthread.php?tid=245139)



Cant get it done ....! - bijoyekuza - 30.03.2011

Hey scripters
so I want that when I turn on my mode , all of the cars engines will be turned off...
Tried that under OnGameModeInIt()
pawn Код:
for(new v = 0; v < MAX_VEHICLES; v++)
{
    GetVehicleParamsEx(v,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(v,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
It doesnt work.
What to do ?
Thanks


Re: Cant get it done ....! - Hornet600 - 30.03.2011

this is weird i tryed to do somethin like that and didnt work too the code looks alright btw


Re: Cant get it done ....! - Mikkel_Pedersen - 30.03.2011

Did you add the vehicles before you do this? As I guess you can't turn off vehicles that haven't been created yet. That's the only thing I can come to think of right now.


Re: Cant get it done ....! - bijoyekuza - 30.03.2011

Oh you right !
Thank you man .
Problem solved.