key fire
#1

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?
Reply
#2

Post your codes?
Reply
#3

i think it might be pressed while pressing some other key some time this makes it ignored
Reply
#4

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.
Reply
#5

but sometime it happens too me
Reply
#6

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?
Reply
#7

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.
Reply
#8

eh i dont get it,example?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)