Simple Problem,
#3

Quote:
Originally Posted by Gh0sT_
Посмотреть сообщение
#pragma tabsize 0 on top of script.
Gods give me strength.. please..

A loose indentation means your code isn't indented well.

An example of bad indentation:

pawn Код:
if(IsplayerConnected(playerid)
{
             print("Connected");
  new string[128];
          GetPlayerName(playerid, string, sizeof string);
                     format(string, sizeof string, "Hello %s!", string);
}
Well indented:

pawn Код:
if(IsplayerConnected(playerid)
{
         print("Connected");
         new string[128];
         GetPlayerName(playerid, string, sizeof string);
         format(string, sizeof string, "Hello %s!", string);
}
Notice how the code is now on equal horizontal lines? That's well indented. Using #pragma tabsize 0 only increases the problems.
Reply


Messages In This Thread
Simple Problem, - by lewismichaelbbc - 14.11.2010, 18:23
Re: Simple Problem, - by Gh0sT_ - 14.11.2010, 18:23
Re: Simple Problem, - by Hiddos - 14.11.2010, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)