Author
|
Message
|
Junior Member
|
12-04-2017
, 13:35
Menu help
|
#1
|
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
|
|
|
|