error 025: function heading differs from prototype
#1

Well I'm getting the "error 025: function heading differs from prototype"
PHP код:
forward OnUnoccupiedVehicleUpdate(vehicleidplayeridpassenger_seatFloat:new_xFloat:new_yFloat:new_z);
public 
OnUnoccupiedVehicleUpdate(vehicleidplayeridpassenger_seatFloat:new_xFloat:new_yFloat:new_z)
{
    return 
1;

Reply
#2

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

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"
Reply
#4

Are your includes updated to the latest versions? (0.3.7 or 0.3.DL which ever one you're using).
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)