Hello, at the outset, I would like to inform you that I don't want to use menu_additem. I need information on how to add a list of items to my menu using a for loop. The code below doesn't display it correctly (it only displays the last element of the loop)..
Code:
public my_menu(id) {
new format_menu[1024];
formatex(format_menu, charsmax(format_menu), "\ySelect item:^nCountdown: %d!^n^n", timer);
for(new i=0; i < items; i++) {
formatex(format_menu, charsmax(format_menu), "%d. %s", i+1, itemsName[i])
show_menu(id, M_KEYS, format_menu, -1, "Item lists");
}
return PLUGIN_HANDLED;
}