Forum

> > CS2D > Scripts > addhook: meaning of 3rd parameter (priority)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch addhook: meaning of 3rd parameter (priority)

9 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

Good day
User Off Offline

Zitieren
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
1× editiert, zuletzt 28.07.14 16:15:41

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

Rainoth
Moderator Off Offline

Zitieren
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 @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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht