Forum

> > CS2D > Scripts > addhook: meaning of 3rd parameter (priority)
Forums overviewCS2D overview Scripts overviewLog in to reply

English addhook: meaning of 3rd parameter (priority)

9 replies
To the start Previous 1 Next To the start

old Re: addhook: meaning of 3rd parameter (priority)

Good day
User Off Offline

Quote
Ok, but why when i write, example addhook("say","tags", 200), lua can't change txt color:
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

old Re: addhook: meaning of 3rd parameter (priority)

Rainoth
Moderator Off Offline

Quote
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 ohaz

@user 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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview