21.01.2010, 18:23
Here are two errors:
Firstly, you are checking for newkeys with &, not with ==.
And at the other hand, I dont think there is a key like "KEY_WALK" - go to wiki.sa-mp.com, search for "GetPlayerKeys" and grab the key definition of your desired key.
Corrected version, using the Mouse LMB for the engine:
Код:
if(newkeys == KEY_WALK)
And at the other hand, I dont think there is a key like "KEY_WALK" - go to wiki.sa-mp.com, search for "GetPlayerKeys" and grab the key definition of your desired key.
Corrected version, using the Mouse LMB for the engine:
Код:
if(newkeys & KEY_FIRE)