key fire - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: key fire (
/showthread.php?tid=513059)
key fire -
iBots - 14.05.2014
i have made a system with progress bar,that needs you to click on fire button,each time you press it counts +1 exp,
but when i click ,sometimes i need to click again to get +1,i tried it on the same gamemode without my edits and it worked good,i checked what i have added till now,nothing is wrong and the code is right,why?
Re: key fire -
Bingo - 14.05.2014
Post your codes?
Re: key fire -
AroseKhanNiazi - 14.05.2014
i think it might be pressed while pressing some other key some time this makes it ignored
Re: key fire -
Konstantinos - 14.05.2014
https://sampwiki.blast.hk/wiki/OnPlayerK..._being_pressed
Quote:
Originally Posted by AroseKhanNaizi
i think it might be pressed while pressing some other key some time this makes it ignored
|
You cannot press more than 1 keys at the same time (even if it seems you do - you actually don't). OnPlayerKeyStateChange will be called normally.
Re: key fire -
AroseKhanNiazi - 14.05.2014
but sometime it happens too me
Re: key fire -
iBots - 14.05.2014
i have checked and found the problem,i got anti cbug,when i remove the anti cbug keystatechange thing it works,anti cbug works with key fire,so how can i fix it?
Re: key fire -
Lordzy - 14.05.2014
Quote:
Originally Posted by iBots
i have checked and found the problem,i got anti cbug,when i remove the anti cbug keystatechange thing it works,anti cbug works with key fire,so how can i fix it?
|
Add an exception to CBug detection when progress bar is being used with keys.
Re: key fire -
iBots - 14.05.2014
eh i dont get it,example?