edited 1×, last 31.08.11 02:00:13 pm
Forum
Scripts
combining scripts
combining scripts
9 replies
1

EDIT: lol. few seconds too late
EngiN33R has writtenJust add two or more dofile lines in your server.lua file. You can execute up to lots of Lua scripts at the same time.
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the
addhook command (if hooked functions use the return value). EDIT: You can have unlimit addhooks (Of the same) if they all have a different variable.
edited 1×, last 31.08.11 02:10:29 pm
DC has writtenyeah depends on the scripts.
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the
addhook command (if hooked functions use the return value).
plus there is another important point: combining scripts does not always work without problems! be careful! scripts might use the same variables or the same hooks. in some cases you have to rewrite parts of the scripts or you have to use priorities for the
addhook command (if hooked functions use the return value).
1

Offline