Problem to update menus
#1

Код:
stock UpdateMenu(Menu: MenuID, function[])
{
	for(new j = 0; j < MAX_SERVER_PLAYERS; j++)
	{
	  if(Spawned[j] == 1)
	  {
		  if(GetPlayerMenu(j) == MenuID)
		  {
		    SendClientMessage(j, 0xff0000ff, "This Menu Will Be Updated");
		  	HideMenuForPlayer(MenuID, j);          // not working
				format(OldMenu[j], 60, "%s", function);
			}
		}
	}
	CallLocalFunction(function,"");
	for(new l = 0; l < MAX_SERVER_PLAYERS; l++)
	{
		if(Spawned[l] == 1)
	  {
	    if(strmatch(OldMenu[l],function))
	    {
	      SendClientMessage(l, 0xff0000ff, "Menu Updated");
	      ShowMenuForPlayer(MenuID, l);          // not working
				OldMenu[l] = 0;
			}
		}
	}
}
It sends The Messages but the menus are not hidden and Showed back. I don't know why...
Reply


Messages In This Thread
Problem to update menus - by Alice[WS] - 27.12.2009, 17:17
Re: Problem to update menus - by Alice[WS] - 28.12.2009, 10:30
Re: Problem to update menus - by dice7 - 28.12.2009, 10:39
Re: Problem to update menus - by Alice[WS] - 28.12.2009, 10:53
Re: Problem to update menus - by Alice[WS] - 28.12.2009, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)