A few PAWNO errors
#7

Does this work?? (Note: Not Tested)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/1337898", cmdtext, true, 10) == 0)
  {
    if(gate1status)
    {
      MoveObject(gate1,-1994.02, 2181, 7.00, 1);
      gate1status = 0;
    }
    else
    {
      MoveObject(gate1,-1994.02, 2187, 7.00, 1);
      gate1status = 1;
    }
    return 1;
  }
  if (strcmp("/69875", cmdtext, true, 10) == 0)
  {
    if(gate2status)
    {
       MoveObject(gate2, -1994.02, 2173, 7.00, 1);
       gate2status = 0;
    }
    else
    {
      MoveObject(gate2, -1994.02, 2167, 7.00, 1);
      gate2status = 1;
    }
    return 1;
  }
  return 0;
}
Reply


Messages In This Thread
A few PAWNO errors - by Shinzei_Banzai - 18.06.2009, 12:39
Re: A few PAWNO errors - by Limex - 18.06.2009, 12:48
Re: A few PAWNO errors - by Shinzei_Banzai - 18.06.2009, 12:53
Re: A few PAWNO errors - by [nl]daplayer - 18.06.2009, 13:08
Re: A few PAWNO errors - by Shinzei_Banzai - 18.06.2009, 13:12
Re: A few PAWNO errors - by Shinzei_Banzai - 18.06.2009, 14:07
Re: A few PAWNO errors - by [nl]daplayer - 18.06.2009, 14:12

Forum Jump:


Users browsing this thread: 1 Guest(s)