Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
"return 1" dont working
4 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)
Maybe your code should be like
1
2
3
4
5
6
7
2
3
4
5
6
7
if say == "!kill" then Msg() return 1 elseif say == "!give" then Msg() return 1 end
![user](img/i_friend.png)
Zitat
The attached function with the HIGHEST priority is the function which will be executed LAST. CS2D will take the return value of this last function (if there is any) only. All other return values will be ignored. This is because CS2D can only react in ONE way at a time and therefore it can only process ONE return value even though there are multiple hooked functions.
In most cases you will just omit the priority parameter (it is [optional]).
In most cases you will just omit the priority parameter (it is [optional]).
![cs2d lua cmd](img/i_codehelp.png)
Not required to share the full code, maybe for now just say hook(or say hooks? If many)
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)