06.10.2011, 02:42
"SetTimerEx("CheckPlayerStatsKeys", 200, 1, "d", playerid);"
What's wrong with OnPlayerKeyStateChange?
Think more effectively rather than a 200 Millisecond timer..
Using one include for something rather small is frankly quite pointless.
Doing this will make a 8 bit array without any includes.
I present, the char array!
So on..
What's wrong with OnPlayerKeyStateChange?
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_FIRE) return CloseStatsBox(playerid);
return 1;
}
Using one include for something rather small is frankly quite pointless.
Doing this will make a 8 bit array without any includes.
I present, the char array!
pawn Code:
new
bool: isstatsShowed [ MAX_PLAYERS char ]
;
#define StatsShowed(%1) (isStatsShowed{(%1)}=true)
if(StatsShowed(playerid)) return HideStats(playerid);