undefined symbol "NUM2"
#1

Hi all i have this error : error 017: undefined symbol "NUM2"
So i want to add for the vehicle speedboost that its number 2 and i get this error :
pawn Код:
else if(newkeys & NUM2)
    {
            new vehicleid = GetPlayerVehicleID(playerid);
            new Float:angle;
            GetVehicleZAngle(vehicleid, angle);

            new Float:velox, Float:veloy, Float:veloz;
            GetVehicleVelocity(vehicleid, velox, veloy, veloz);

            velox += floatsin(-angle, degrees);
            veloy += floatcos(-angle, degrees);
            SetVehicleVelocity(vehicleid, velox, veloy, veloz);
    }
    }
    }
    return 1;
}
anyone can help me?

EDIT : My friend told me.
Reply
#2

Change NUM2 to KEY_ANALOG_DOWN
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)