Raised This Month: $ Target: $400
 0% 

Why it show this warning?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GBLTeam
Senior Member
Join Date: Mar 2012
Location: Republic of Macedonia
Old 01-30-2019 , 17:20   Why it show this warning?
Reply With Quote #1

Why it show this kind of problem? When there nothing wrong?
vz.sma(247) : warning 217: loose indentation
vz.sma(249) : warning 217: loose indentatio


Lines:
Code:
give_item(id,"weapon_awp")
ColorChat(0, GREEN, "[VIP]^x03 %s ^x01Activated^x04 AWP from [VIP Menu]", name)

Last edited by GBLTeam; 01-30-2019 at 17:22.
GBLTeam is offline
Send a message via MSN to GBLTeam Send a message via Skype™ to GBLTeam
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-30-2019 , 17:40   Re: Why it show this warning?
Reply With Quote #2

Because your code isn't indented properly. We can't see that from those 2 lines you provided.

With simple words, if your code looks like this:

PHP Code:
function()
    {
        
some_code()
                
more_code()
            } 
You should make it look like this:

PHP Code:
function()
{
    
some_code()
    
more_code()

Inconsistent usage of tabs and regular spaces can also cause that warning.
Bear in mind this is only a warning and doesn't have any effect on the plugin.
__________________

Last edited by OciXCrom; 01-30-2019 at 17:40.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 07:34.


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