30.01.2011, 07:55
Hi
I have a problem with OnPlayerKeyStateChange callback.
So, when the show player dialog and player press numpad 4 or numpad 6 key, callback return strange values.
This situation is only i show dialog for player.
Sory, for my bad english
I have a problem with OnPlayerKeyStateChange callback.
Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { printf("[OnPlayerKeyStateChange]: newkeys: %d oldkeys: %d",newkeys,oldkeys); return 1; }
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
Sory, for my bad english