SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/08/2019, 10:39 AM   #1
Libbyphay
Big Clucker
 
Join Date: May 2017
Posts: 184
Reputation: 0
Default Problem GetVehicleParamsEx, SetVehicleParamsEx

Why I use it's error.

PHP Code:
forward SetVehicleEngine(vehicleidplayerid);
public 
SetVehicleEngine(vehicleidplayerid)
{
    new 
enginelightsalarmdoorsbonnetbootobjective//warning 219: local variable "doors" shadows a variable at a preceding level
    
GetVehicleParamsEx(vehicleidenginelightsalarmdoorsbonnetbootobjective); //error 035: argument type mismatch (argument 5)
    
if(engine == VEHICLE_PARAMS_ON)
    {
        
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,door,bonnet,boot,objective); //error 035: argument type mismatch (argument 5)
        
send_info(playerid"Engine On");
    }
    else if((
engine == VEHICLE_PARAMS_OFF || engine == VEHICLE_PARAMS_UNSET))
    {
        
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,door,bonnet,boot,objective); //error 035: argument type mismatch (argument 5)
        
send_info(playerid"Engine Off");
    }
    return 
1;

Libbyphay is offline   Reply With Quote
Old 15/08/2019, 10:48 AM   #2
Libbyphay
Big Clucker
 
Join Date: May 2017
Posts: 184
Reputation: 0
Default Re: Problem GetVehicleParamsEx, SetVehicleParamsEx

Fixed
Libbyphay is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GetVehicleParamsEx problem Robson04 Scripting Help 2 18/01/2019 06:54 PM
SetVehicleParamsEx Problem 032.Marcus Scripting Help 4 06/06/2014 06:57 AM
Question about GetVehicleParamsEx/SetVehicleParamsEx horsemeat Scripting Help 9 14/04/2013 06:53 PM
GetVehicleParamsEx problem L.Hudson Scripting Help 7 29/07/2012 10:22 AM
Question: SetVehicleParamsEx/GetVehicleParamsEx bn102 Help Archive 2 14/12/2010 05:45 PM


All times are GMT. The time now is 12:51 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.