SA-MP Forums Archive
function heading differs from prototype OnUnoccupiedVehicleUpdate - 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: function heading differs from prototype OnUnoccupiedVehicleUpdate (/showthread.php?tid=573399)



function heading differs from prototype OnUnoccupiedVehicleUpdate - ilepopivanov - 07.05.2015

I'm using 0.3.7 include where siren are added and now i'm trying to make anti teleport vehicle system but when i compile i got 1 error.

forward OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);

I have this in a_samp include but IDK why this error is showing up. I openned my gmod with pawno.exe > File > Open. And I arledy used functions from 0.3.7 like actors, new objects itd.


AW: function heading differs from prototype OnUnoccupiedVehicleUpdate - Mencent - 07.05.2015

Hello!

The parameter of the foward and public have to been the same. Check this, please.


Re: function heading differs from prototype OnUnoccupiedVehicleUpdate - ilepopivanov - 07.05.2015

Код:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z)
{
    if(GetVehicleDistanceFromPoint(vehicleid, new_x, new_y, new_z) > 20)
    {
        new Float:ATPX, Float:ATPY, Float:ATPZ;
        GetVehiclePos(vehicleid, ATPX, ATPY, ATPZ);
        SetVehiclePos(vehicleid, ATPX, ATPY, ATPZ);
        return 0;
    }

    return 1;
}



AW: function heading differs from prototype OnUnoccupiedVehicleUpdate - Mencent - 07.05.2015

Have you try to update your server-package?


Re: function heading differs from prototype OnUnoccupiedVehicleUpdate - ilepopivanov - 07.05.2015

I update it yesterday. http://prntscr.com/72jvux


Re: function heading differs from prototype OnUnoccupiedVehicleUpdate - [KHK]Khalid - 07.05.2015

~irrelevant.


Re: function heading differs from prototype OnUnoccupiedVehicleUpdate - ilepopivanov - 07.05.2015

I'm using 0.3.7 -_-