loose indentation
I get a lot of loose indentation errors and i want to remove them couse after a compile it is really hard to see how it went i just want 0 warnings and 0 errors.
For example this gives an warning loose indentation: Code:
public leet_control_laptop(id,key) |
Re: loose indentation
loose indentation is just a warning (and does not affect the code). all it really wants is that you line up your lines. your return line should have the same amount of tabs/spaces as the bracket before it.
AMXX studio has a command to do this for you. edit: so instead of code looking like this Code:
public zomg2_checker()Code:
public zomg2_checker() |
Re: loose indentation
Well thanks. But what is the command and what for example wrong in the code i posted?
|
Re: loose indentation
[img]http://img321.**************/img321/5862/indenttoolvn9.jpg[/img]
and as i previously stated, your return line should have as many spaces/tabs as the line before it: Code:
public leet_control_laptop(id,key) |
Re: loose indentation
sorry i am not english i don't understand "and as i previously stated, your return line should have as many spaces/tabs as the line before it"
|
Re: loose indentation
This character: {
and This character: } should be the same amount of spaces from the left side of the page. IN DUTCH: Dit teken: { En Dit teken: } Zou de zelfde hoeveelheid van ruimtes van de linkerzijde van de pagina moeten zijn. |
Re: loose indentation
Sweet, gotta get amxx studio, been using crimson (the best imo anyways, but still, nice to have amxx files)
|
Re: loose indentation
I love #pragma tabsize N
=) |
| All times are GMT -4. The time now is 22:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.