Call a function in a function ?
I'm back... already. Lmfao.
So I'm trying to open a menu inside a function. So the ct types /simon and it would open a menu. but there's already a function for /simon. so how would I make it when the ct types /simon it would call one function and also another? Could you do something like: register_clcmd( "say /simon", "Func1", "Func2", )? Am I being too confusing? xD I think even I'm confused by my own question. I've tried adding Code:
EMenu( id )EMenu = my menu function |
Re: Call a function in a function ?
Commands can't be registered like that. Show your code.
|
Re: Call a function in a function ?
Code:
public plugin_init() {Code:
public SetSimon(id) {Code:
public EMenu(id) { |
Re: Call a function in a function ?
Show us the EMenu code
|
Re: Call a function in a function ?
Ok done. I edited my post above. I didn't realize you needed it. Lawl.
|
Re: Call a function in a function ?
Just put 'EMenu( id );' into 'SetSimon( id )'.
|
Re: Call a function in a function ?
Noo. I want /simon to call the SetSimon function. But I also want /simon to open the EMenu at the same time.
or do you mean change the "SetSimon" To "EMenu" to open 2 EMenu's? 1 menu and 1 the setsimon? |
Re: Call a function in a function ?
I would do this for better documentation:
PHP Code:
|
Re: Call a function in a function ?
Lmao!! I actually didn't think of that at all. I'm pretty sure that worked. But my menu won't pop up? Is there something wrong with my menu?
|
Re: Call a function in a function ?
Quote:
|
| All times are GMT -4. The time now is 06:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.