03.04.2010, 04:30
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
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
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)
{
- Cody Beer