KEY_AIM - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: KEY_AIM (
/showthread.php?tid=229014)
KEY_AIM -
Snipa - 20.02.2011
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if (newkeys & KEY_AIM)
{
new car;
new Float:angle;
car = GetPlayerVehicleID(playerid);
GetVehicleZAngle(car, angle);
SetVehicleZAngle(car, angle);
}
}
return 1;
}
Код:
error 017: undefined symbol "KEY_AIM"
Meh, it is supposed to be KEY_AIM right?
Re: KEY_AIM -
Baddark2131 - 20.02.2011
At the beginning of GM
Re: KEY_AIM -
Snipa - 20.02.2011
Quote:
Originally Posted by Baddark2131
|
What's the point of defining it? What other keys need to be defined?
Re: KEY_AIM -
xRyder - 20.02.2011
Quote:
Originally Posted by Snipa
What's the point of defining it? What other keys need to be defined?
|
Only KEY_AIM.