Solved warning 217: loose indentation.

Coding Help/Re-API Supported
Post Reply
Obada
Member
Member
Palestine
Posts: 27
Joined: 6 years ago
Contact:

warning 217: loose indentation.

#1

Post by Obada » 6 years 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 6 years ago, edited 1 time in total.

User avatar
ArminC
Senior Member
Senior Member
Romania
Posts: 137
Joined: 6 years ago
Location: Bucharest
Contact:

#2

Post by ArminC » 6 years 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: 6 years ago
Contact:

#3

Post by Obada » 6 years ago

ArminC wrote: 6 years 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 354 times
ze_core.rar
(5 KiB) Downloaded 354 times

User avatar
ArminC
Senior Member
Senior Member
Romania
Posts: 137
Joined: 6 years ago
Location: Bucharest
Contact:

#4

Post by ArminC » 6 years ago

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

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#5

Post by Raheem » 6 years 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++.
He who fails to plan is planning to fail

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 5 guests