Raised This Month: $ Target: $400
 0% 

[help] making menu to buy godmode stuff


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eewokney
Junior Member
Join Date: May 2005
Old 01-05-2008 , 04:12   [help] making menu to buy godmode stuff
Reply With Quote #1

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.
eewokney is offline
Send a message via MSN to eewokney
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode