20.11.2016, 07:55
Is there any way to update a menu item. Ex -
. Changing Yes to No
PHP код:
AddMenuItem(test, 1, "Yes");
AddMenuItem(test, 1, "Yes");
new MenuString[50]; //At top of script
new Menu:Test;
CMD:menutext(playerid, params[])
{
DestroyMenu(Test);
if(sscanf(params, "s[128]", MenuString)) return SendClientMessage(playerid, COLOR_RED, "/menutext [text]");
Test = CreateMenu("TestMenu", 1, 50.0, 160.0, 205.0, 0.0);
SetMenuColumnHeader(Test, 0, "Options:");
AddMenuItem(Test, 0, MenuString);
return 1;
}