SA-MP Forums Archive
help please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help please (/showthread.php?tid=266527)



help please - MA_proking - 05.07.2011

Код:
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\FILTER~1\afk.pwn(48) : warning 217: loose indentation
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\FILTER~1\afk.pwn(51) : warning 217: loose indentation
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\FILTER~1\afk.pwn(62) : warning 217: loose indentation
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\FILTER~1\afk.pwn(67) : warning 217: loose indentation
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\FILTER~1\afk.pwn(69) : warning 217: loose indentation
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\FILTER~1\afk.pwn(81) : warning 217: loose indentation
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\FILTER~1\afk.pwn(92) : warning 217: loose indentation
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\FILTER~1\afk.pwn(104) : warning 217: loose indentation
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\FILTER~1\afk.pwn(111) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\FILTER~1\afk.pwn(115) : warning 217: loose indentation
C:\DOCUME~1\Prabhat\Desktop\WORLDS~1.5\FILTER~1\afk.pwn(125) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Warnings.
How to remove these warnings


Re: help please - Skaizo - 05.07.2011

show lines


Re: help please - Wesley221 - 05.07.2011

You need to indent your code.
Example:
pawn Код:
// A not indented code:
COMMAND:example(playerid, cmdtext)
{
    if(IsPlayerAdmin(playerid))
        {
                Kick(playerid);
    }
        return 1;
}
// An indented code
COMMAND:example(playerid, cmdtext)
{
    if(IsPlayerAdmin(playerid))
    {
        Kick(playerid);
    }
    return 1;
}
Auto indent your code
Tutorial


Re: help please - Mean - 05.07.2011

https://sampforum.blast.hk/showthread.php?tid=256961

EDIT: Too late.


Re: help please - iggy1 - 05.07.2011

Your also going to have to rename the variable "string" because there is already a variable with that name that exists in your code.