Keyboard commands assistance please.
#1

So .. I've read almost everything I could until I was blue in the face about this key story.. basically I'm wanting to create something that when someone presses their up key, it sends them a message saying "Woop woop", can some one assist me and tell me where I'm going wrong:

Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(newkeys == KEY_UP)
	{
	SendClientMessage(playerid, COLOR_YELLOW, "Woop Woop");
  }
}
Thanks in advanced!
Reply


Messages In This Thread
Keyboard commands assistance please. - by Paladin - 25.07.2009, 20:57
Re: Keyboard commands assistance please. - by paytas - 25.07.2009, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)