Quote:
Originally Posted by kketan77
menu_handler(id, menu, random_num(1, 4)) is correct!
|
That is not correct.
You will have errors because you are destroy the same menu twice. You should do this:
PHP Code:
switch( key == 5 ? random_num(1,4) : key )
{
case 1:
{
// abc
}
case 2:
{
// abc
}
case 3:
{
// abc
}
case 4:
{
// abc
}
}
__________________