calling function by its name from string
hello, let's say I have a functions name in string and I want to call it from there. is there any way to do it besides using the set_task?
PHP Code:
Spoiler
because I plan on having a lot of register_clcmd(); hooks and I think it would be better if I were to use it once instead of 20+ times or so. oh and I know there is callfunc, but it seems like my optimization would be pointless if I were to use that lol |
Re: calling function by its name from string
Callfunc or private forwards (CreateOneForward).
|
Re: calling function by its name from string
Quote:
|
Re: calling function by its name from string
Really doesn't matter, those are command handlers, use whichever one is more intuitive to you.
|
Re: calling function by its name from string
Quote:
|
| All times are GMT -4. The time now is 07:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.