Loose Identation
#1

I always have this problem with Scratch. How To Disable This?

pawn Код:
C:\Alex\Server\gamemodes\SW.pwn(352) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
Reply
#2

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

Well So there's No Way To Fix It? I Mean In LVDM You Can Do anything.
Reply
#4

.... /facepalm

You can use #pragma tabsize 0 .. but thats incredibly lazy to use, follow means guide.
Reply
#5

Post The Code...
Reply
#6

Quote:
Originally Posted by PrawkC
Посмотреть сообщение
.... /facepalm
This.

I mean, go to the LVDM gamemode, and freaking indent it.
Also: I remember one day you were calling one guy a "fucking noob", well, I'd basically say the same now...
Reply
#7

You are fucking with the tabs. Post the code here so we can fix it, and so you can look to it and see what you are doing wrong
Reply
#8

oh.. lol
loose indentation damage your script so you should try to fix this

idk how to explane so i will just give you an example...
WRONG: (what give you thet warning)
pawn Код:
if (strcmp("/hna", cmdtext, true, 10) == 0)
    {
                SetPlayerHealth(playerid, 100.0);
           SetPlayerArmour(playerid, 100.0);
        return 1;
    }
GOOD:
pawn Код:
if (strcmp("/hna", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid, 100.0);
        SetPlayerArmour(playerid, 100.0);
        return 1;
    }
or put under #include ::
pawn Код:
#pragma tabsize 0
but i suggest you to take the first option
Reply
#9

xkirill: "loose indentation damage your script so you should try to fix this "
Incorrect Version:
pawn Код:
if (strcmp("/hna", cmdtext, true, 10) == 0)
    {
                SetPlayerHealth(playerid, 100.0);
                SetPlayerArmour(playerid, 100.0);
        return 1;
    }
Having loose indentation doesn't damage your script, it just makes it unclear and annoying when you receive warnings. Also, that example you posted would give warnings because of the place your return statement is in.

Correct Version:

pawn Код:
if (strcmp("/hna", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid, 100.0);
        SetPlayerArmour(playerid, 100.0);
        return 1;
    }
Reply
#10

oh... shit >.<
its a forum bug...
i did it right... the fourm just posted it like thet..
nvm fixed...

EDIT:FIXED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)