What I'm confused about is what you want g_HighBanMenuValues to refer to, a string or an integer. The code you wrote is equivalent to
Code:
if (get_user_flags(id)&HIGHER_BAN_TIME_ADMIN)
{
switch(g_menuOption[id])
{
case 0: g_menuSettings[id] = 60
case 1: g_menuSettings[id] = 4320
case 2: g_menuSettings[id] = 10080
case 3: g_menuSettings[id] = 0
}
}
Please tell us exactly how you want the code to operate. By the way, the if clauses are written as such:
Code:
if (boolean)
{
}
else if (boolean)
{
}
else
{
}
//or
if (boolean) <in-line code here>