27.12.2009, 17:17
Код:
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; } } } }