Forum
CS2D Scripts addhook: meaning of 3rd parameter (priority)addhook: meaning of 3rd parameter (priority)
9 Antworten 1
ohaz hat geschrieben
Priority
???
The higher the number, the higher priority that hook has.
1
2
2
addhook("say", "say1", 20) addhook("say", "say2", 200)
msg(""..crtag.."[Admin] "..player(id,"name").." :"..crsay.." "..t)
Console:
LUA ERROR: attempt to call a number value
The same result if ("say","tags"). Pls help me
1× editiert, zuletzt 28.07.14 16:15:41
cs2d hat geschrieben
The attached function with the HIGHEST priority is the LAST function which will be executed.
So, say1 will run before say2 runs.
Just relaying TopNotch's message @ ohaz
@ Good day: Next time choose a more suitable title. Something like "Number at end of "addhook" meaning?" or something.
In case you don't understand something. Try going to cs2d.com/help
Rainoth hat geschrieben
@ Good day: Next time choose a more suitable title. Something like "Number at end of "addhook" meaning?" or something.
So, can you help me, or no?
2× editiert, zuletzt 28.07.14 16:49:47
Basically what you've said so far was
"here, I have a fork I can show you. How do I fix my car?"
Rainoth hat geschrieben
Can you edit my lua? Please... I'll send my script to your mail, ok? Post your code and we'll fix it up.
Basically what you've said so far was
"here, I have a fork I can show you. How do I fix my car?"
Basically what you've said so far was
"here, I have a fork I can show you. How do I fix my car?"
1