Warning 217: loose indentation | Help Me
#1

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); 
Reply
#2

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

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)