English Use hook, null value

23 replies
Goto Page
To the start Previous 1 2 Next To the start
08.04.16 01:47:47 pm
Up
Ortimh
User
Offline Off
It seems that you tried to cs2d lua cmd addhook a cs2d lua hook trigger hook and there's no function for that hook. To solve this either delete the cs2d lua cmd addhook code or create a function for that hook.
I'm awesome ... and I really cookies
09.04.16 07:42:20 pm
Up
HESY
User
Offline Off
user Rainoth yes, timer not work, but I not understand what means 'third timer parameter'

Quote:
So you want to disable buttons for a while and then re-enable them?

not all buttons, only which player used

If the bug is not corrected, the entire project can be thrown in the trash
10.04.16 05:01:29 am
Up
Zeik
User
Offline Off
It would be so much easier if people wrote what they are trying to do instead of just throwing a bunch of meaningless code.

Tell me what you are trying to do and maybe I will help you. I can't waste time just trying to guess what you're trying to do.
10.04.16 01:35:52 pm
Up
Rainoth
Moderator
Offline Off
@user HESY: That's exactly what my code does. BUT you have to understand that trigger control works by passing what NAME of trigger you have to use. In other words, if you have triggers with the same name, they will all get triggered. It's actually a convenience in most cases, since you disable all triggers you no longer need. However, if you want to disable separate triggers, you'll have to use different names for them.

I understand that you have triggers:

"debug" x 10
and clicking one of them will disable all of them for a while.

You'll have to set up:
"debug0"
"debug1"
"debug2"
"debug3"
...
"debug8"
"debug9"

and define a function for each of them (what function does can be the same).

Hope that helps.
Cheers.
To the start Previous 1 2 Next To the start