Fixed show_menu

This commit is contained in:
David Anderson 2004-08-03 23:55:43 +00:00
parent 597b6dfd32
commit fdbcb8b9df

View File

@ -693,7 +693,12 @@ static cell AMX_NATIVE_CALL show_menu(AMX *amx, cell *params) /* 3 param */
{
int 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 time = params[4];
if (params[1] == 0) {