undefined symbol "NUM2" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: undefined symbol "NUM2" (
/showthread.php?tid=395100)
[fixed]undefined symbol "NUM2" -
leetboi - 25.11.2012
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.
Re: undefined symbol "NUM2" -
Louris - 25.11.2012
Change NUM2 to KEY_ANALOG_DOWN