Pawno error 010: Invalid function
#2

Having opening braces after your two if statements might help. Also a closing " in the second one:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/pdopen", cmdtext, true) == 0)
    {
        MoveObject(Gate, 1541.80005, -1636.90002, 12.4, 0, 0, 270, 1);
        MoveObject(Gate2, 1542, -1618.69995, 12.4, 0, 0, 270, 1);
        return 1;
    }
   
    if (strcmp("/pdclose", cmdtext, true) == 0)
    {
        MoveObject(Gate, 1541.80005, -1631.69995, 12.4, 0, 0, 270, 1);
        MoveObject(Gate2, 1542, -1623.80005, 12.4, 0, 0, 268, 1);
        return 1;
    }
   
    return 0;
}
Reply


Messages In This Thread
Pawno error 010: Invalid function - by Gecko75 - 19.02.2013, 22:34
Re: Pawno error 010: Invalid function - by WillWinter - 19.02.2013, 22:38
Re: Pawno error 010: Invalid function - by Zempist - 19.02.2013, 23:32

Forum Jump:


Users browsing this thread: