SA-MP Forums Archive
GetPlayerMenu() always returns last showed menu - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: GetPlayerMenu() always returns last showed menu (/showthread.php?tid=494816)



GetPlayerMenu() always returns last showed menu - ikey07 - 14.02.2014

GetPlayerMenu(playerid) will return last menu id which was showed to player, if I use HideMenuForPlayer and later use GetPlayerMenu, it will show last showed menu, while it should return invalid menu.

It can be easly tested by showing some menu to player, hide it, and then use this, and you will see your last menu,


CMD:test(playerid,params[])
{
ShowMenuForPlayer(GetPlayerMenu(playerid),playerid );
return 1;
}