[HELP] One Error, KeyStateChange
#1

Ok so I tried to make it so when someone honks the horn it opens the pd gate and i get this
Код:
C:\Users\Chris\Desktop\RRP RV™\SA-MP Server 2\gamemodes\RRP-Add-To.pwn(373) : error 017: undefined symbol "KEY_HORN"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

If I ain't mistaken, you should use "KEY_SPRINT"
Reply
#3

Quote:
Originally Posted by IcyBlight
If I ain't mistaken, you should use "KEY_SPRINT"
Thank you, 0 errors

One thing this should use the horn button right?
Reply
#4

Well I couldn't find the horn key on the list, but since Sprint and Horn is the same key, I believe so. Untested though
Reply
#5

BUT: That would make it open when people sprint by unless you make a

Код:
if(IsPlayerInAnyVehicle(playerid))
Reply
#6

Quote:
Originally Posted by IcyBlight
BUT: That would make it open when people sprint by unless you make a

Код:
if(IsPlayerInAnyVehicle(playerid))
Ok, thanks.

P.S.

Saw the stuff in your signature, let me know when your server is complete... id like to see it
Reply
#7

No probs, mate.

And sure, it might be a while though, lots of projects atm
Reply
#8

Key horn is named something else as :
Код:
KEY_CROUCH
else you can do this
Код:
#define KEY_HORN 2
Reply
#9

Quote:
Originally Posted by »Julian™«
Key horn is named something else as :
Код:
KEY_CROUCH
else you can do this
Код:
#define KEY_HORN 2
Ok thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)