Raised This Month: $ Target: $400
 0% 

[SOLVED] Why is this break; out of context?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 05-25-2010 , 01:37   [SOLVED] Why is this break; out of context?
Reply With Quote #1

Code:
public client_killed( iVictim, iAttacker, shouldgib ) {     g_Parasited[iVictim] = false;     if(is_alien(iAttacker))     {         Achievement_2(iAttacker);                 new weaponid = -1;         ns_get_weapon(iAttacker,weaponid);                         switch(ns_get_class(iAttacker))         {             case CLASS_GORGE:             {                 if(weaponid == WEAPON_SPIT) Achievement_5(iAttacker);                 break;             }                         case CLASS_FADE:             {                 if(weaponid == WEAPON_SWIPE) Achievement_4(iAttacker);                 break;             }         }     } }

Wtf? I have always had to put break's in case's before to prevent it from going down the line, now it tells me they are out of context? Am I missing something here?...
or am I thinking about php?
__________________


Last edited by mysticssjgoku4; 05-25-2010 at 02:41.
mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
 



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 05:21.


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