function heading differs from prototype OnUnoccupiedVehicleUpdate
#1

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

Hello!

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

Код:
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;
}
Reply
#4

Have you try to update your server-package?
Reply
#5

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

~irrelevant.
Reply
#7

I'm using 0.3.7 -_-
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)