Is this stock..
#1

Wrongly coded? cuz, it doesn't work, i want to know if this is the stock's mistake or my mistake so answer fast please.


pawn Код:
stock IsVehicleInRangeOfPoint(vehicleid, Float:radi, Float:x, Float:y, Float:z)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetVehiclePos(vehicleid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Is this stock.. - by Strier - 23.05.2013, 07:07
Re: Is this stock.. - by KingHual - 23.05.2013, 07:08
Re: Is this stock.. - by Strier - 23.05.2013, 07:11
Re: Is this stock.. - by Strier - 23.05.2013, 07:16
Re: Is this stock.. - by KingHual - 23.05.2013, 07:19
Re: Is this stock.. - by Strier - 23.05.2013, 07:25
Re: Is this stock.. - by Strier - 23.05.2013, 07:29
Re: Is this stock.. - by KingHual - 23.05.2013, 07:33
Re: Is this stock.. - by Strier - 23.05.2013, 07:36
Re: Is this stock.. - by KingHual - 23.05.2013, 07:45

Forum Jump:


Users browsing this thread: 4 Guest(s)