hi everybody, im making a menu where people can buy things like godmode im stuck ad the part where people choose something out of my buymenu which does work but im using "case" to check what people have choosen but i want to add more then one line behind it, when i try to make it a amxx it says " only a single statement (or expression) can follow each "case", so i need to think of something else,
part of my script:
[small] switch( key )
{
case 0:client_print(0,print_chat, "[AMX] <Dice Dealer> %s has contracted the deadly slap disease!", User)
HasPrize[id][0] = PRIZE_SLAP
HasPrize[id][1] = random(SLAP_TIME) + 5
user_slap(id,5)
set_user_rendering(id,kRenderFxGlowShell, Red,Green,Blue, kRenderNormal,16)
case 1: client_print( id, print_chat, "Menu Option #2" )
case 2: client_print( id, print_chat, "Menu Option #3" )
case 3: client_print( id, print_chat, "Menu Option #4" )
case 4: client_print( id, print_chat, "Menu Option #5" )
case 5: client_print( id, print_chat, "Menu Option #6" )
case 6: client_print( id, print_chat, "Menu Option #7" )
case 7: client_print( id, print_chat, "Menu Option #8" )
case 8: client_print( id, print_chat, "Menu Option #9" )
case 9: client_print( id, print_chat, "Menu Option EXIT" )
}[small]
Last edited by eewokney; 01-05-2008 at 04:14.
|