moveable gate ,i got error
#4

Oh, didn't see, you also have two opening braces at every command.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/aptopen", true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,10,1801.08056641,-1279.14318848,7.70273018))
        {
            MoveObject(gateopen,1801.08056641,-1279.14318848,7.70273018,1.5);
        }
        return 1;
    }
    if(strcmp(cmdtext, "/aptclose", true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,10,1801.08056641,-1279.14318848,7.70273018))
        {
            MoveObject(gateopen,1801.08056641,-1279.14318848,14.95273018,1.5);
        }
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
moveable gate ,i got error - by Aizen - 16.05.2011, 07:11
Re: moveable gate ,i got error - by Biesmen - 16.05.2011, 07:15
Re: moveable gate ,i got error - by Aizen - 16.05.2011, 07:26
Re: moveable gate ,i got error - by Biesmen - 16.05.2011, 07:30
Re: moveable gate ,i got error - by Aizen - 16.05.2011, 07:37

Forum Jump:


Users browsing this thread: 1 Guest(s)