Resolved warning 217: loose indentation.

Coding Help/Re-API Supported
Post Reply
Obada
Member
Member
Palestine
Posts: 27
Joined: 1 Year Ago
Has thanked: 0
Been thanked: 0
Contact:

warning 217: loose indentation.

#1

Post by Obada » 1 Year Ago

Hello,

May i know why i got this warning?
warning 217: loose indentation.
I just replace this

Code: Select all

//	set_hudmessage(255, 255, 0, -1.0, 0.21, 1, 2.0, 2.0)
//	ShowSyncHudMsg(0, g_iReleaseNotice, "%L", LANG_PLAYER, "ZOMBIE_RELEASE", g_iCountDown)
By this:

Code: Select all

client_print(0, print_center, "%L", LANG_PLAYER, "ZOMBIE_RELEASE", g_iCountDown, g_iReleaseNotice)
In ze_core.sma

Thanks in advance.
Last edited by Obada on 27 Jan 2018, 10:57, edited 1 time in total.

User avatar
ArminC
Senior Member
Senior Member
Romania
Posts: 137
Joined: 1 Year Ago
Location: Bucharest
Has thanked: 0
Been thanked: 2 times
Age: 17
Contact:

#2

Post by ArminC » 1 Year Ago

Give me the full plugin "as it is" (at least that pice of code) in a pastebin/code format to fix it :)

Obada
Member
Member
Palestine
Posts: 27
Joined: 1 Year Ago
Has thanked: 0
Been thanked: 0
Contact:

#3

Post by Obada » 1 Year Ago

ArminC wrote:
1 Year Ago
Give me the full plugin "as it is" (at least that pice of code) in a pastebin/code format to fix it :)
I found the solution, it's because the code is unreadable, so i sort it and arrange it.

By the way, this is not difference from current ze_core.sma
Attachments
ze_core.rar
(5 KiB) Downloaded 34 times
ze_core.rar
(5 KiB) Downloaded 34 times

User avatar
ArminC
Senior Member
Senior Member
Romania
Posts: 137
Joined: 1 Year Ago
Location: Bucharest
Has thanked: 0
Been thanked: 2 times
Age: 17
Contact:

#4

Post by ArminC » 1 Year Ago

Yeah, next time if you can't get it use AMXX Studio auto-ident feature :)

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1962
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 21
Contact:

#5

Post by Raheem » 1 Year Ago

You should follow one indentation style in your code and what indent mean is spaces you leave for example:
  • Code: Select all

    if (is_user_alive)
    {
      Anything // Two spaces
    }
  • Code: Select all

    if (is_user_alive)
    {
        Anything // Four spaces
    }
Moreover this warning won't affect your code and compiler will still understand your code and will compile it to binaries. It's advised to code in good program like NotePad++ or AMXX Studio personally i always use Notepad++.
You don't know? Learn and you will know.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests