#1

Hi, im trying to create something that will check the velocity of a vehicle, problem is no matter what value i set to get, it still gets as 1
pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:spx, Float:spy, Float:spz;
    GetVehicleVelocity(GetPlayerVehicleID(playerid), spx, spy, spz);
    if(IsPlayerInAnyVehicle(playerid))
    {
        if(spx * 3 && spy * 3 && spz * 3)
        {
for example i put a message to see if it works i set those values to 9999999 it still sends the message when i just barely press w, i press w, it still appears, im not quite familiar with this "*" thing, but im trying to check if the car has went above "3"

- Cody Beer
Reply


Messages In This Thread
Help - by [WF]Demon - 03.04.2010, 04:30
Re: Help - by [WF]Demon - 03.04.2010, 13:49

Forum Jump:


Users browsing this thread: 3 Guest(s)