Please need help fast! Pawno question!
#3

Indent your code.

Example (this is very bad indented code):
pawn Код:
public OnPlayerConnect(playerid)
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
if(IsPlayerConnected(i) && i != playerid)
{
  MyFunction(i);
  }
}
  return 1;
}
Example (this is how your code should be indented):
pawn Код:
public OnPlayerConnect(playerid)
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    if(IsPlayerConnected(i) && i != playerid)
    {
      MyFunction(i);
    }
  }
  return 1;
}

Quote:
Originally Posted by brett7
there just warnings not errors so it will compile fine
It doesn't matter, script shouldn't have any warning or error.
Reply


Messages In This Thread
Please need help fast! Pawno question! - by ryan1122334455 - 03.10.2009, 22:13
Re: Please need help fast! Pawno question! - by brett7 - 03.10.2009, 22:19
Re: Please need help fast! Pawno question! - by Correlli - 03.10.2009, 22:20
Re: Please need help fast! Pawno question! - by coole210 - 03.10.2009, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)