OnPlayerKeyStateChange help
#1

Sorry I wasn't to sure what to name the title, anyway..

I am new to Pawno and giving it a go by editing a script to gain knowledge for I can make my own one day.
I am changing where you use command /enter and /exit to be able to enter and exit with a key.
I have got entering scripted fine by using;
PHP код:
if(newkeys == KEY_SECONDARY_ATTACK)
  {
//Chunk of code etc.. 
tested it and it works fine.
However,which I'll seem noob and you may laugh, I tried the same thing for exit but I just got a lot of errors saying stuff like:
> invalid function or declaration
> number of arguments does not match definition

I'm assuming that I don't use if(newkeys == KEY_SECONDARY_ATTACK){ again lol? so what would I use?

I want players to be able to press ENTER key to enter a building and exit.

Sorry if I never explained this well enough.
Any help will be extremely helpful and appreciated as I will be learning off of this.
Reply


Messages In This Thread
OnPlayerKeyStateChange help - by aaronwelsh - 16.08.2012, 01:41
Re : OnPlayerKeyStateChange help - by Naruto_Emilio - 16.08.2012, 01:46
Re: OnPlayerKeyStateChange help - by Kindred - 16.08.2012, 01:47
Re: Re : OnPlayerKeyStateChange help - by aaronwelsh - 16.08.2012, 01:52
Re: OnPlayerKeyStateChange help - by SaYrOn - 16.08.2012, 09:21

Forum Jump:


Users browsing this thread: 1 Guest(s)