13.05.2014, 19:13
i have made a progress bar for clicks,when you press on key fire it dicreases the progress bar value,but it doesnt work everytime,like sometimes i click but it doesnt move,and when i click again it moves,why?
if (PRESSED(KEY_FIRE))
{
Clicks[playerid] += 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_FIRE)
{
Clicks[playerid] += 1;
}
return 1;
}