help please
#1

Код:
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
Reply
#2

show lines
Reply
#3

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
Reply
#4

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

EDIT: Too late.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)