Soldier System
#4

Код:
warning 217: loose indentation
You can remove all warning 217 messages (loose indentation) by adding:
pawn Код:
#pragma tabsize 0
at very top of your script (below includes)

But it's not recommended.

Anyway, 'loose indentation' warning comes up when your lines in script aren't aligned.

Example:

// this will cause warning:

pawn Код:
public OnPlayerConnect(playerid)
{
    new
  pName[24];
 GetPlayerName(playerid, pName, 24);
        new string[11+MAX_PLAYER_NAME];
    format(string, sizeof(string), " Welcome %s..", pName);
  SendClientMessage(playerid, -1, string);
     return true;
}
// FIX:

pawn Код:
public OnPlayerConnect(playerid)
{
   new pName[24];
   GetPlayerName(playerid, pName, 24);
   new string[11+MAX_PLAYER_NAME];
   format(string, sizeof(string), " Welcome %s..", pName);
   SendClientMessage(playerid, -1, string);
   return true;
}
Reply


Messages In This Thread
Soldier System - by Djane - 09.12.2013, 20:31
Re: Soldier System - by Krakuski - 09.12.2013, 20:36
Re: Soldier System - by Djane - 09.12.2013, 20:51
Re: Soldier System - by erminpr0 - 09.12.2013, 21:10

Forum Jump:


Users browsing this thread: 1 Guest(s)