Raised This Month: $ Target: $400
 0% 

set_task loose indentation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 07-05-2020 , 17:21   Re: set_task loose indentation
Reply With Quote #1

Quote:
Originally Posted by OciXCrom View Post
The code compiles without any warning or errors. If you mixed tabs and spaces in your text editor, that's the problem. The forum supports only spaces so the tabs would have automatically be changed to spaces.
Thanks, I just copied my code from forum and repasted it. I didn't know that this can happen.
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-06-2020 , 02:25   Re: set_task loose indentation
Reply With Quote #2

It's not something that happened out of the blue: you mixed tabs with spaces while indenting.
__________________

Last edited by HamletEagle; 07-06-2020 at 02:25.
HamletEagle is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 07-06-2020 , 08:05   Re: set_task loose indentation
Reply With Quote #3

@supertrio17. Curious. What editor do you use?
__________________
DJEarthQuake is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 07-06-2020 , 09:59   Re: set_task loose indentation
Reply With Quote #4

Visual Studio Code, why?
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-06-2020 , 22:00   Re: set_task loose indentation
Reply With Quote #5

Quote:
Originally Posted by supertrio17 View Post
Visual Studio Code, why?
When I copy code into VS Code, I will highlight all of the code, press tab (to indent all code) and then press Shift+Tab (to un-indent the same code). This will convert indentation spaces to tabs (I've only ever done this with code the is four spaces per tab so I'm not sure if it will work if your tabs are configured for anything other than a width of four spaces).
__________________
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 07-06-2020 , 13:20   Re: set_task loose indentation
Reply With Quote #6

Rendering white space helps.
__________________
DJEarthQuake is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode