Menu help
Hello. I write "help me".
I registered command RegConsoleCmd("sm_menu", cmd_menu); I make : Public action cmd_menu, public void Table, Public MenuCallBack. In menu call back i have: public MenuCallBack(Handle:menu, MenuAction:action, client, position) { if ( action == MenuAction_Select ) { decl String:item[40]; GetMenuItem(menu, position, item, sizeof(item)); if(StrEqual(item, "ws")) { PrintToChat(client,"Something") } } How to change that when someone clicks on the menu "1. Menu WS" it will open the menu, which is under the command sm_ws If someone needs more code I can send |
Re: Menu help
PHP Code:
|
Re: Menu help
Full plugin:
PHP Code:
compilation error: D:\Komp\menu.sp(46) : error 030 : Compound statement not closed at the end of file <started at line 38> What am I doing wrong? |
Re: Menu help
Quote:
|
All times are GMT -4. The time now is 13:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.