![](img/smiles/halfhead.gif)
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
addhook: meaning of 3rd parameter (priority)
9 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
![](img/smiles/halfhead.gif)
![user](img/i_friend.png)
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
edited 1×, last 28.07.14 04:15:41 pm
cs2d has written
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 @
![user](img/i_friend.png)
@
![user](img/i_friend.png)
In case you don't understand something. Try going to cs2d.com/help
![user](img/i_friend.png)
@
Good day: Next time choose a more suitable title. Something like "Number at end of "addhook" meaning?" or something.
![user](img/i_friend.png)
![](img/smiles/thoughtfully2.gif)
So, can you help me, or no?
edited 2×, last 28.07.14 04:49:47 pm
Basically what you've said so far was
"here, I have a fork I can show you. How do I fix my car?"
![user](img/i_friend.png)
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?"
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)