A few PAWNO errors
#2

Remove the modelid from MoveObject, you don't have that.

That will get rid of 4 warnings.

Replace if (strcmp("/1337898", cmdtext, true, 10) == 0);

With if (strcmp("/1337898", cmdtext, true, 10) == 0)

No ; is meant to be in it. That will remove the error.

Loose indentations are not really a problem.

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;
  }
 }
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)