Not sure that it would work or not.
#1

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!
Reply
#2

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 );
}
Reply
#3

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


Forum Jump:


Users browsing this thread: