Enter Key to enter in a building
#1

Hi everyone,
i already wrote about this problem in another topic, but i think that it is the problem that i very need to resolve.
I need that when i want to enter in a building, i have to press the enter key... can you suggest me some script? I tried with this:
Код:
OnPlayerKeyStateChange(playerid, oldkeys, newkeys)
 if(newkeys & KEY_SECONDARY_ATTACK)
{
enter script
}
It give me four errors:

Код:
C:\Users\Marco\Desktop\Atlantis City\gamemodes\crp.pwn(24706) : error 029: invalid expression, assumed zero
C:\Users\Marco\Desktop\Atlantis City\gamemodes\crp.pwn(24706) : error 017: undefined symbol "oldkeys"
C:\Users\Marco\Desktop\Atlantis City\gamemodes\crp.pwn(24707) : error 001: expected token: ";", but found "if"
C:\Users\Marco\Desktop\Atlantis City\gamemodes\crp.pwn(24707) : error 017: undefined symbol "newkeys"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
So...what i can do? Can you help me?
Reply


Messages In This Thread
Enter Key to enter in a building - by MarcoWesley - 02.06.2012, 15:23
Re: Enter Key to enter in a building - by Jochemd - 02.06.2012, 15:27
Re: Enter Key to enter in a building - by MarcoWesley - 02.06.2012, 16:11
Re: Enter Key to enter in a building - by MadeMan - 02.06.2012, 16:14
Respuesta: Enter Key to enter in a building - by Chris1337 - 02.06.2012, 16:15
Re: Enter Key to enter in a building - by newbienoob - 02.06.2012, 16:17
Re: Enter Key to enter in a building - by MarcoWesley - 02.06.2012, 16:21
Re: Enter Key to enter in a building - by MadeMan - 02.06.2012, 16:26
Re: Enter Key to enter in a building - by MarcoWesley - 02.06.2012, 16:42
Re: Enter Key to enter in a building - by MadeMan - 02.06.2012, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)