mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed show_menu
This commit is contained in:
parent
597b6dfd32
commit
fdbcb8b9df
@ -693,7 +693,12 @@ static cell AMX_NATIVE_CALL show_menu(AMX *amx, cell *params) /* 3 param */
|
|||||||
{
|
{
|
||||||
int ilen;
|
int ilen;
|
||||||
char* sMenu = get_amxstring(amx,params[3],0,ilen);
|
char* sMenu = get_amxstring(amx,params[3],0,ilen);
|
||||||
int menuid = g_menucmds.findMenuId( sMenu, amx );
|
int numparam = *params/sizeof(cell);
|
||||||
|
int menuid = 0;
|
||||||
|
if (numparam == 4)
|
||||||
|
menuid = g_menucmds.findMenuId(get_amxstring(amx, params[4], 1, ilen), amx);
|
||||||
|
else
|
||||||
|
menuid = g_menucmds.findMenuId(sMenu, amx);
|
||||||
int keys = params[2];
|
int keys = params[2];
|
||||||
int time = params[4];
|
int time = params[4];
|
||||||
if (params[1] == 0) {
|
if (params[1] == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user