The whole script is huge, and the handle of the menu is handled in those 4 cases......
Code:
//The difinition of the menu
new g_HighBanMenuValues[4] = {60, 4320, 10080, 0} // The numbers are in minutes.. 0 = PERMANENT BAN
//The Handle of the user input, setting menuSttings[id] to the value predefined in HighBanMenuValues.
if (get_user_flags(id)&HIGHER_BAN_TIME_ADMIN)
{
switch(g_menuOption[id])
{
case 0: g_menuSettings[id] = g_HighBanMenuValues[0] //1Hour
case 1: g_menuSettings[id] = g_HighBanMenuValues[1] //3Days
case 2: g_menuSettings[id] = g_HighBanMenuValues[2] //7Days
case 3: g_menuSettings[id] = g_HighBanMenuValues[3] //Permanent
}
}
//What i want is to have the menu look like this:
new g_HighBanMenuValues[4] = {1Hour, 3Days, 7Days, Permanent}
but my problem is that the server dont know 1Hour so i need to convert the string to a number, so the server understands it
Hope this make more sense