Loose indentation?
#1

Why do I get this?
Код:
C:\Documents and Settings\YkZBoY\Desktop\dec-lands\gamemodes\decv0118.pwn(12556) : warning 217: loose indentation
C:\Documents and Settings\YkZBoY\Desktop\dec-lands\gamemodes\decv0118.pwn(12622) : warning 217: loose indentation
The 12566 line
Код:
if(strcmp(cmd, "/fpk", true) == 0)
The 12622 line
Код:
	if (strcmp(cmd, "/number", true) == 0)
Reply
#2

Quote:
Originally Posted by Shannkz
Посмотреть сообщение
Why do I get this?
Код:
C:\Documents and Settings\YkZBoY\Desktop\dec-lands\gamemodes\decv0118.pwn(12556) : warning 217: loose indentation
C:\Documents and Settings\YkZBoY\Desktop\dec-lands\gamemodes\decv0118.pwn(12622) : warning 217: loose indentation
Well show the lines it would be better but you can always use "TAB" key to move the line a bit forward so the warning will be removed.

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

EDIT: ok you just added the lines just move the lines in such a way that they become in the same place where the command should be, I know it's quite hard to explain how to fix indentation problem :/
Reply
#3

The 12566 line
Код:
if(strcmp(cmd, "/fpk", true) == 0)
The 12622 line
Код:
	if (strcmp(cmd, "/number", true) == 0)
Reply
#4

It's nothing.It means script works but files (12556) (12622) they are the same,but script need to work.When is writen warning script is okay.When error something don't works.
Reply
#5

Fixed it!
Thanks FalconX
Reply
#6

Quote:
Originally Posted by edzuss99
Посмотреть сообщение
It's nothing.It means script works but files (12556) (12622) they are the same,but script need to work.When is writen warning script is okay.When error something don't works.
Warnings and errors both should be removed and if you say that if the warning pop ups and it is nothing wrong that's wrong.. I believe warnings and errors both should be fixed so the code will be fully bug free.

(ignoring the warnings is not a good idea)

Anyway try

pawn Код:
if (strcmp(cmd, "/number", true) == 0)
Edit: no problem mate.
Reply
#7

show 2-3 lines before and after lines 12566 and 12622
or if you are too lazy add #pragma tabsize 0 on the top of the script (not recommended)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)