SA-MP Forums Archive
error 010: invalid function or declaration - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 010: invalid function or declaration (/showthread.php?tid=380565)



error 010: invalid function or declaration - MrSnapp - 26.09.2012

Error:
pawn Код:
error 010: invalid function or declaration
Lines:

pawn Код:
CMD:doorclose(playerid, params[])
    {
        if(PlayerToPoint(3.0,playerid,1558.970703125, -1677.9114990234, 1722.1081542969))
        {
            MoveObject(door1,1558.970703125, -1677.9114990234, 1722.1081542969,1.50);
            MoveObject(door2,1561.9755859375, -1677.8798828125, 1722.1081542969,1.50);
        }
        else if(PlayerToPoint(3.0,playerid,1552.7789306641, -1691.4653320313, 1722.1081542969))
        {
            MoveObject(door3,1550.4266357422, -1691.5009765625, 1722.1081542969,1.50);
            MoveObject(door4,1553.4294433594, -1691.4515380859, 1722.1081542969,1.50);
        }
        else if(PlayerToPoint(3.0,playerid,1560.1090087891, -1653.4477539063, 1719.5637207031))
        {
            MoveObject(door5,1560.1090087891, -1653.4477539063, 1719.5637207031,1.50);
        }
    }
        return 1;
    }



Re: error 010: invalid function or declaration - clarencecuzz - 26.09.2012

Extra bracket at the end? xD