AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Why it show this warning? (https://forums.alliedmods.net/showthread.php?t=313995)

GBLTeam 01-30-2019 17:20

Why it show this warning?
 
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)


OciXCrom 01-30-2019 17:40

Re: Why it show this warning?
 
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.


All times are GMT -4. The time now is 07:34.

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