Raised This Month: $ Target: $400
 0% 

How to avoid the "loose indentation"?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
keyblade
Member
Join Date: Nov 2010
Location: China
Old 01-02-2011 , 10:02   How to avoid the "loose indentation"?
Reply With Quote #1

Here is my codes which are warned.

PHP Code:
    switch(key)
    {
        case 
1:
        if (
pweapon == CSW_M4A1)
    {
        
client_print(idprint_chat"[Ice-Action] aaa!")
    } else if (
pmoney >= 3100)
    {
        
cs_set_user_money(idpmoney 31001)
        
give_item(id"weapon_m4a1")
    } else if (
pmoney << 3100)
    { 
        
client_print(idprint_chat"[Ice-Action] bbb!")
    } 
It warned at this line:
PHP Code:
    } else if (pmoney >= 3100
I know WARNINGs do not affect compiling but I don't want to get these.

Thx
keyblade is offline
 


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 01:59.


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