I need help with this fuction
#1

Hi everybody, my problem is with this function, i don't know why don't work. I copied this exactly of the wiki


Код:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z)
{
    // Check if it moved far	
    if(GetVehicleDistanceFromPoint(vehicleid, new_x, new_y, new_z) > 50.0)
    {
        // Reject the update
        return 0;
    }
 
    return 1;
}
It is assumed that if the vehicle moves 50 meters it would have to return value 0, but not, Thanks!
Reply


Messages In This Thread
I need help with this fuction - by eduarditociudadela - 29.09.2018, 16:32
Re: I need help with this fuction - by Electrifying - 29.09.2018, 16:54
Re: I need help with this fuction - by eduarditociudadela - 29.09.2018, 17:14
Re: I need help with this fuction - by Electrifying - 29.09.2018, 17:20
Re: I need help with this fuction - by eduarditociudadela - 29.09.2018, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)