->
Code:
public MyMenuHook(id, key)
{
switch (key)
{
case 8:
{
ShowMenu(id, --gPlayerMenuPosition[id]); // Backward
//Another line of code can be here now because of the braces
}
case 9:
{
ShowMenu(id, ++gPlayerMenuPosition[id]); // Forward
//Another line of code can be here now because of the braces
}
}
}