Forum
Scripts
Hooks system
Hooks system
8 replies
1

Re: Hooks system
Deleted User Quote
You can put everything in the same hooked function, don't hook multiple functions to the same hook dude.
Sure, but it makes code harder to read.
Quote
Well, that's why the priority function does exists.
Still,I didn't see any scripts using it. This fact causes some bugs and "conflicts".
aleksix has written Quote
You can put everything in the same hooked function, don't hook multiple functions to the same hook dude.
Sure, but it makes code harder to read.
Quote
Well, that's why the priority function does exists.
Still,I didn't see any scripts using it. This fact causes some bugs and "conflicts".
If you just throw everything in the same hook, it looks way better. And don't ever use multiple addhooks in one script, it looks terrible and people can tell you're a noob.
Alistaire is right - usually newbies use it, becouse pro-scripters don't get mind blocker seeing everything in one function.
aleksix has writtenBackward-engineering is not that good. Someone would like to change the code. Even a good,well-documented code can be rather tricky to learn/remember.
Where the fuck are you trying to go with this post.
Alistaire, you should put your script inside a single hooked function to avoid bugs.
1

Offline