SA-MP Forums Archive
warning 217: loose indentation - 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 (/showthread.php?tid=606482)



warning 217: loose indentation - MattafixTM - 05.05.2016

My problem solved


Re: warning 217: loose indentation - Sew_Sumi - 05.05.2016

It actually compiles fine without a fault with the code you've provided.


Re: warning 217: loose indentation - GuyYahood1 - 05.05.2016

Added:
PHP код:
#pragma tabsize 0 



Re: warning 217: loose indentation - Sew_Sumi - 05.05.2016

Quote:
Originally Posted by GuyYahood1
Посмотреть сообщение
Added:
PHP код:
#pragma tabsize 0 
That doesn't fix it, nor is it recommended.


Re: warning 217: loose indentation - MBilal - 05.05.2016

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
That doesn't fix it, nor is it recommended.
But wht is alternative way to fix loseindecations ?
its hard to fix that like i have code alot of in includes and most of the includes have
loseindecation.


Re: warning 217: loose indentation - Sew_Sumi - 05.05.2016

Quote:
Originally Posted by MBilal
Посмотреть сообщение
But wht is alternative way to fix loseindecations ?
its hard to fix that like i have code alot of in includes and most of the includes have
loseindecation.
Fixing the indentations is a good way to fix them...


Considering this code, by itself, compiles without an error in a clean gamemode suggests the issue is elsewhere.

By using pragma to fix it, you're simply avoiding the issue. Using pragma to avoid the issues, is not fixing it, nor is it recommended.


Re: warning 217: loose indentation - Dayrion - 05.05.2016

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Fixing the indentations is a good way to fix them...


Considering this code, by itself, compiles without an error in a clean gamemode suggests the issue is elsewhere.

By using pragma to fix it, you're simply avoiding the issue. Using pragma to avoid the issues, is not fixing it, nor is it recommended.
+1.

Which line has a bad indentation ? Can you give us more details about the problem?


Re: warning 217: loose indentation - Sew_Sumi - 05.05.2016

None, because when I put the code in a clean gamemode it compiled without warning. That was with

PHP код:
#pragma tabsize 4 
By the "fix" that he's applied, he's simply avoiding the issue.


Re: warning 217: loose indentation - Dayrion - 05.05.2016

Quote:
Originally Posted by MattafixTM
Посмотреть сообщение
My problem solved
Alright, he dosn't need help anymore.


Re: warning 217: loose indentation - LifeRah - 05.05.2016

Hmm...