public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { printf("[OnPlayerKeyStateChange]: newkeys: %d oldkeys: %d",newkeys,oldkeys); return 1; }
[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
What is wrong?
OnPlayerKeyStateChange logs every key and returns invalid/unused as 0 |
When a player is shown a dialog, I don't think keystrokes will get sent to oPKSC
|
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
print("[OnPlayerKeyStateChange]: newkeys: %d oldkeys: %d,newkeys,oldkeys);
return 1;
}
printf("[OnPlayerKeyStateChange]: newkeys: %d oldkeys: %d",newkeys,oldkeys);
I think I know a solution for this, I think you forgot something its showin' below:
pawn Code:
|