Raised This Month: $ Target: $400
 0% 

switch() & case


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 03-26-2006 , 03:12  
Reply With Quote #10

here is an example how to use a case for a range:

Code:
switch( bla ) {         case 0 .. 20: client_print( 0, print_chat, "Bla is  between 0 and 20" );         case 21 .. 50: client_print( 0, print_chat, "Bla is  between 21 and 50" ); }
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
 



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 16:43.


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