error 025: function heading differs from prototype - 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: error 025: function heading differs from prototype (
/showthread.php?tid=658921)
error 025: function heading differs from prototype -
IdonTmiss - 16.09.2018
Well I'm getting the "error 025: function heading differs from prototype"
PHP код:
forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z);
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z)
{
return 1;
}
Re: error 025: function heading differs from prototype -
Burridge - 16.09.2018
There's an additional 3 floating number parameters.
https://sampwiki.blast.hk/wiki/OnUnoccupiedVehicleUpdate
Код:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z)
You also don't need to forward it since it's in the default SA-MP includes already (from 0.3C R3).
Re: error 025: function heading differs from prototype -
IdonTmiss - 16.09.2018
Quote:
Originally Posted by Burridge
There's an additional 3 floating number parameters.
https://sampwiki.blast.hk/wiki/OnUnoccupiedVehicleUpdate
Код:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z)
You also don't need to forward it since it's in the default SA-MP includes already (from 0.3C R3).
|
Nah, I still get "error 025: function heading differs from prototype"
Re: error 025: function heading differs from prototype -
Burridge - 16.09.2018
Are your includes updated to the latest versions? (0.3.7 or 0.3.DL which ever one you're using).
Re: error 025: function heading differs from prototype -
IdonTmiss - 16.09.2018
Quote:
Originally Posted by Burridge
Are your includes updated to the latest versions? (0.3.7 or 0.3.DL which ever one you're using).
|
The "a_samp" and other "a_"'s are