PDA

View Full Version : undefined symbol "NUM2"


leetboi
25/11/2012, 08:27 AM
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 :

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.

Louris
25/11/2012, 08:41 AM
Change NUM2 to KEY_ANALOG_DOWN