Engine On/Off
#3

Here are two errors:

Код:
if(newkeys == KEY_WALK)
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_FIRE)
Reply


Messages In This Thread
Engine On/Off - by wordas - 21.01.2010, 16:50
Re: Engine On/Off - by wordas - 21.01.2010, 18:16
Re: Engine On/Off - by Striker_Moe - 21.01.2010, 18:23
Re: Engine On/Off - by wordas - 22.01.2010, 08:26
Re: Engine On/Off - by [HiC]TheKiller - 22.01.2010, 08:34
Re: Engine On/Off - by wordas - 22.01.2010, 08:39
Re: Engine On/Off - by Nexotronix - 02.03.2010, 15:47
Re: Engine On/Off - by Scenario - 02.03.2010, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)