: warning 217: loose indentation
#1

I added #pragma tabsize 0 but still warning......
Reply
#2

Codes?
Reply
#3

Give us the Codes to help you bro
Reply
#4

I suggest write your code nice and easy to read, if you make it ugly, it's hard to fix your code and others to understand.
Reply
#5

You can use

#pragma tabsize 0
Reply
#6

Quote:
Originally Posted by TheHonnor
Посмотреть сообщение
You can use

#pragma tabsize 0


Quote:

I added #pragma tabsize 0 but still warning......

he already added it and he's getting errors too....
Reply
#7

Код HTML:
(6593) : warning 217: loose indentation
(15637) : warning 217: loose indentation
(15658) : warning 217: loose indentation
(22010) : warning 217: loose indentation
(25080) : warning 217: loose indentation
(46801) : warning 217: loose indentation
(46840) : warning 217: loose indentation
(46854) : warning 217: loose indentation
(46866) : warning 217: loose indentation
(46878) : warning 217: loose indentation
(46890) : warning 217: loose indentation
(46917) : warning 217: loose indentation
(46929) : warning 217: loose indentation
(46941) : warning 217: loose indentation
(46953) : warning 217: loose indentation
(46980) : warning 217: loose indentation
(46992) : warning 217: loose indentation
(47004) : warning 217: loose indentation
(47031) : warning 217: loose indentation
(47043) : warning 217: loose indentation
(47055) : warning 217: loose indentation
(47082) : warning 217: loose indentation
(47109) : warning 217: loose indentation
(47121) : warning 217: loose indentation
(47133) : warning 217: loose indentation
(47145) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

26 Warnings.
Код HTML:
		 switch(dialogid)
        {
                case 509:
                {
                        if(!response)
                        {
                                SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog.");
                                return 1;
                        }
                        switch(listitem)
                        {
                                case 0:
                                {
                                        ShowPlayerDialog(playerid, 510, DIALOG_STYLE_LIST, "Furniture Chairs", "Chair1\nChair2\nChair3\nChair4", "Ok", "Cancel");
                                }
                                case 1:
                                {
                                        ShowPlayerDialog(playerid, 511, DIALOG_STYLE_LIST, "Furniture Beds", "Bed1\nBed2\nBed3\nBed4", "Ok", "Cancel");
                                }
                                case 2:
                                {
                                        ShowPlayerDialog(playerid, 512, DIALOG_STYLE_LIST, "Furniture Tables", "Table1\nTable2\nTable3", "Ok", "Cancel");
                                }
                                case 3:
                                {
                                        ShowPlayerDialog(playerid, 513, DIALOG_STYLE_LIST, "Furniture T.V", "TV1\n TV2\n TV3", "Ok", "Cancel");
                                }
                                case 4:
                                {
                                        ShowPlayerDialog(playerid, 514, DIALOG_STYLE_LIST, "Furniture Cabinet", "Cabinet 1", "Ok", "Cancel");
                                }
                                case 5:
                                {
                                        ShowPlayerDialog(playerid, 515, DIALOG_STYLE_LIST, "Furniture Misc", "Basket Ball net\nClothes\nEaster Egg", "Ok", "Cancel");
                                }
//You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc..
                        }
                }
        }
        switch(dialogid)
        {
                case 510:
                {
                        if(!response)
                        {
                                SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog.");
                                return 1;
                        }
                        switch(listitem)
                        {
                                case 0:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 1723;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(1723, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 1:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 1704;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(1704, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 2:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 11665;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(11665, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 3:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 1705;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(1705, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
//You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc..
                        }
                }
        }
        switch(dialogid)
        {
                case 511:
                {
                        if(!response)
                        {
                                SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog.");
                                return 1;
                        }
                        switch(listitem)
                        {
                                case 0:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 1745;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(1745, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 1:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 1794;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(1794, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 2:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 1797;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(1797, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 3:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 2566;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(2566, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
//You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc..
                        }
                }
        }
        switch(dialogid)
        {
                case 512:
                {
                        if(!response)
                        {
                                SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog.");
                                return 1;
                        }
                        switch(listitem)
                        {
                                case 0:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 1281;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(1281, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 1:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 2311;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(2311, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 2:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 1825;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(1825, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
//You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc..
                        }
                }
        }
        switch(dialogid)
        {
                case 513:
                {
                        if(!response)
                        {
                                SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog.");
                                return 1;
                        }
                        switch(listitem)
                        {
                                case 0:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 2297;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(2297, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 1:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 2296;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(2296, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 2:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 2595;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(2595, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
//You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc..
                        }
                }
        }
        switch(dialogid)
        {
                case 514:
                {
                        if(!response)
                        {
                                SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog.");
                                return 1;
                        }
                        switch(listitem)
                        {
                                case 0:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 2078;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(2078, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
//You can continue cases here but make sure you make a new line in the ShowPlayerDialog on /mp3 command \r\n4. 4th \r\n5. 5th channel etc..
                        }
                }
        }
        switch(dialogid)
        {
                case 515:
                {
                        if(!response)
                        {
                                SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog.");
                                return 1;
                        }
                        switch(listitem)
                        {
                                case 0:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 3496;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(3496, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 1:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 2844;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(2844, OX+2, OY, OZ, ORX, ORY, ORZ);
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
                                case 2:
                                {
                                        new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
                        GetPlayerPos(playerid, OX, OY, OZ);
                        oModel = 19343;
                        ORX = 0.0;
                        ORY = 0.0;
                        ORZ = 0.0;
                        Object = CreateObject(19343, OX+2, OY, OZ, ORX, ORY, ORZ);
                        SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
                        EditObject(playerid, Object);
                                }
						}
                }
        }
Reply
#8

it's just a warnings, because you have to put all your codes as same position, Example:
PHP код:
CMD:healme(playerid,params[])
{
     
//Do something here
                                      
return 1;

then i'll get like this:
Quote:

(4) : warning 217: loose indentation

You've to put your codes in the a same positions, example like this:
PHP код:
CMD:healme(playerid,params[])
{
    
//Do Something here
    
return 1;

then i'll not get any warning.
Quote:

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Reply
#9

Well position and how am
Reply
#10

Just fix them, find them in the client, use tab, and make the alignment work.


Something else is a program named decrustify. Though it takes a lot of knowledge to set it up correctly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)