Raised This Month: $ Target: $400
 0% 

[solved] tag mismatch ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiQu
Veteran Member
Join Date: Nov 2009
Old 05-16-2010 , 17:33   Re: [solved] tag mismatch ?
Reply With Quote #1

I know its solved but isnt it better to use a switch?

PHP Code:
switch(cs_get_user_team(id) ) 
{
    case 
CS_TEAM_T:
    {
        
    }
    case 
CS_TEAM_CT:
    {
        
    }

__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-16-2010 , 19:39   Re: [solved] tag mismatch ?
Reply With Quote #2

Quote:
Originally Posted by NiQu View Post
I know its solved but isnt it better to use a switch?
It depends on how you are using it and if there is more than once case. In the code that was posted by the OP it would be better to use a switch.
__________________
fysiks is offline
Reply



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 03:40.


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