SA-MP Forums Archive
Not sure that it would work or not. - 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: Not sure that it would work or not. (/showthread.php?tid=368287)



Not sure that it would work or not. - TaLhA XIV - 12.08.2012

PHP код:
                    new vehicleid;
                    new 
lights,alarm,doors,bonnet,boot,objective;
                    if(
GetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonnet,boot,objective))
                    {
                        
SetVehicleParamsEx(vehicleid,1,lights,alarm,doors,bonnet,boot,objective);
                    } 
Hello,
Just wanted to sure that would this work,if not just please fix this for me.
ThAnks!


Re: Not sure that it would work or not. - FalconX - 12.08.2012

Quote:
Originally Posted by TaLhA XIV
Посмотреть сообщение
PHP код:
                    new vehicleid;
                    new 
lights,alarm,doors,bonnet,boot,objective;
                    if(
GetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonnet,boot,objective))
                    {
                        
SetVehicleParamsEx(vehicleid,1,lights,alarm,doors,bonnet,boot,objective);
                    } 
Hello,
Just wanted to sure that would this work,if not just please fix this for me.
ThAnks!
pawn Код:
new vehicleid = GetPlayerVehicleID( playerid );
new lights, engine, alarm, doors, bonnet, boot, objective;

GetVehicleParamsEx( vehicleid,engine,lights,alarm,doors,bonnet,boot,objective );


if( engine == 0 )
{
    SetVehicleParamsEx( vehicleid,1,lights,alarm,doors,bonnet,boot,objective );
}



Re: Not sure that it would work or not. - TaLhA XIV - 12.08.2012

ThAnKs!Not even tested but I think it would help +rep.