[help] making menu to buy godmode stuff
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] |
Re: [help] making menu to buy godmode stuff
did you put these: { }?
Code:
|
Re: [help] making menu to buy godmode stuff
ty that works ! now i have the problam that the powers work bad, zeus mode doesnt stop, slap disease only slaps once and some things dont even work,
this is the sma: http://creativeatmosphere.clanserver...x_ejl_dice.sma |
Re: [help] making menu to buy godmode stuff
question: how do you do that after the player choose a option out of the menu the player says like /help?
case 0:"say_help" ? |
Re: [help] making menu to buy godmode stuff
is it client_cmd(id, "say help")
???? |
Re: [help] making menu to buy godmode stuff
Code:
client_cmd(index, "say /help"); |
Re: [help] making menu to buy godmode stuff
this is what i now have, it doesnt work, what is it?:
Code:
|
Re: [help] making menu to buy godmode stuff
Try this
You had index and its id is short for index PHP Code:
|
| All times are GMT -4. The time now is 11:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.