commands not working
#4

Bad (loose) Indentation:

Код:
public OnPlayerCommandText (playerid,cmdtext[])
{
 if(strcmp(cmdtext, "/smbase", true) == 0)
{
    SetPlayerPos(playerid,-2157.7058,-197.5349,35.3203);
  SendClientMessage(playerid,TEXT_COLOR, "Welcome to the SM Base");
 return 1;
    }
 if(strcmp(cmdtext, "/kill", true) == 0)
  {
SetPlayerHealth(playerid, 0);
        return 1;
    }
   return 0;
 }
Good Indentation

Код:
public OnPlayerCommandText (playerid,cmdtext[])
{
  if(strcmp(cmdtext, "/smbase", true) == 0)
  {
    SetPlayerPos(playerid,-2157.7058,-197.5349,35.3203);
    SendClientMessage(playerid,TEXT_COLOR, "Welcome to the SM Base");
    return 1;
  }
  if(strcmp(cmdtext, "/kill", true) == 0)
  {
    SetPlayerHealth(playerid, 0);
    return 1;
  }
  return 0;
}
@Andre, you're right, its
Код:
#pragma tabsize 0
to let pawno ignore Indentation

Reply


Messages In This Thread
commands not working - by GreenHammy - 29.12.2007, 14:13
Re: commands not working - by GreenHammy - 29.12.2007, 14:20
Re: commands not working - by GreenHammy - 29.12.2007, 14:25
Re: commands not working - by Sandra18[NL] - 29.12.2007, 14:46
Re: commands not working - by GreenHammy - 29.12.2007, 15:20
Re: commands not working - by eXchainZ-FoReVeR - 16.09.2009, 00:03

Forum Jump:


Users browsing this thread: 1 Guest(s)