SA-MP Forums Archive
Warning 217: loose indentation | Help Me - 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)
+--- Thread: Warning 217: loose indentation | Help Me (/showthread.php?tid=630178)



Warning 217: loose indentation | Help Me - VixxeN - 10.03.2017

Hi guys, recently i have added some mapping in my gamemode, but i recive an warning:
Код HTML:
warning 217: loose indentation
at line:
PHP код:
CreateObject(984, -290.561161034.1517319.22765,   0.000000.00000, -0.06000); 



Re: Warning 217: loose indentation | Help Me - TitanX - 10.03.2017

Quote:
Originally Posted by VixxeN
Посмотреть сообщение
Hi guys, recently i have added some mapping in my gamemode, but i recive an warning:
Код HTML:
warning 217: loose indentation
at line:
PHP код:
CreateObject(984, -290.561161034.1517319.22765,   0.000000.00000, -0.06000); 
http://samp-indent.eu.pn/indent.php


Re: Warning 217: loose indentation | Help Me - LEOTorres - 10.03.2017

You have to indent your code correctly to remove this warning.

For instance, if you were to use the callback OnGameModeInit, your code should look as the following:

Код:
public OnGameModeInit()
{
	CreateObject(984, -290.56116, 1034.15173, 19.22765, 0.00000, 0.00000, -0.06000);
	return 1;
}
If you make it look like this, you will get the warning:


Код:
public OnGameModeInit()
{
CreateObject(984, -290.56116, 1034.15173, 19.22765, 0.00000, 0.00000, -0.06000);
	return 1;
}
You can use TAB to insert an indent into your code.

Alternatively, you can use

Код:
#pragma tabsize 0
to avoid this warning from occurring, but this is not recommended; it would be best to just indent correctly.


Re: Warning 217: loose indentation | Help Me - VixxeN - 10.03.2017

Quote:
Originally Posted by LEOTorres
Посмотреть сообщение
You have to indent your code correctly to remove this warning.

For instance, if you were to use the callback OnGameModeInit, your code should look as the following:

Код:
public OnGameModeInit()
{
	CreateObject(984, -290.56116, 1034.15173, 19.22765, 0.00000, 0.00000, -0.06000);
	return 1;
}
If you make it look like this, you will get the warning:


Код:
public OnGameModeInit()
{
CreateObject(984, -290.56116, 1034.15173, 19.22765, 0.00000, 0.00000, -0.06000);
	return 1;
}
You can use TAB to insert an indent into your code.

Alternatively, you can use

Код:
#pragma tabsize 0
to avoid this warning from occurring, but this is not recommended; it would be best to just indent correctly.
Thank You


Re: Warning 217: loose indentation | Help Me - TitanX - 10.03.2017

Quote:
Originally Posted by LEOTorres
Посмотреть сообщение
You have to indent your code correctly to remove this warning.
Alternatively, you can use

Код:
#pragma tabsize 0
to avoid this warning from occurring, but this is not recommended; it would be best to just indent correctly.
no, just don't even says it we are try to make it unsable and you publish it