Dialog and OnPlayerKeyStateChange - bug
#1

Hi

I have a problem with OnPlayerKeyStateChange callback.

Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	printf("[OnPlayerKeyStateChange]: newkeys: %d oldkeys: %d",newkeys,oldkeys);
           return 1;
}
So, when the show player dialog and player press numpad 4 or numpad 6 key, callback return strange values.

Code:
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 16 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 16
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 128 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 128
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 128 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 128
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 128 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 128
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 128 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 128
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 128 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 128
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 32 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 32
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 128 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 128
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
[OnPlayerKeyStateChange]: newkeys: 32 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 32
[OnPlayerKeyStateChange]: newkeys: 128 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 128
[OnPlayerKeyStateChange]: newkeys: 8 oldkeys: 0
[OnPlayerKeyStateChange]: newkeys: 0 oldkeys: 8
This situation is only i show dialog for player.
Sory, for my bad english
Reply


Messages In This Thread
Dialog and OnPlayerKeyStateChange - bug - by chormi - 30.01.2011, 07:55
Re: Dialog and OnPlayerKeyStateChange - bug - by PeteShag - 30.01.2011, 07:58
Re: Dialog and OnPlayerKeyStateChange - bug - by chormi - 30.01.2011, 08:15
Re: Dialog and OnPlayerKeyStateChange - bug - by Retardedwolf - 30.01.2011, 09:00
Re: Dialog and OnPlayerKeyStateChange - bug - by chormi - 30.01.2011, 09:08
Re: Dialog and OnPlayerKeyStateChange - bug - by chormi - 30.01.2011, 11:49
Re: Dialog and OnPlayerKeyStateChange - bug - by vengeance89 - 17.06.2011, 11:16
Re: Dialog and OnPlayerKeyStateChange - bug - by alpha500delta - 17.06.2011, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)