SA-MP Forums Archive
Pawno errors - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pawno errors (/showthread.php?tid=215508)



Pawno errors - duckie - 23.01.2011

hello, ive made a lift but if i compile i'll get this error:

E:\RaceLife\filterscripts\adminbuilding.pwn(265) : error 010: invalid function or declaration
E:\RaceLife\filterscripts\adminbuilding.pwn(269) : error 010: invalid function or declaration
E:\RaceLife\filterscripts\adminbuilding.pwn(273) : error 010: invalid function or declaration
E:\RaceLife\filterscripts\adminbuilding.pwn(277) : error 010: invalid function or declaration
E:\RaceLife\filterscripts\adminbuilding.pwn(281) : error 010: invalid function or declaration
E:\RaceLife\filterscripts\adminbuilding.pwn(283) : error 010: invalid function or declaration

these are the lines

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])

{
        if (strcmp("/floor0", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41027832,13.53906822,0.00000000,180.00000000,179.75000000,1.5);//This will move the gate
        }
        if (strcmp("/floor1", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,18.46406555,0.00000000,179.99450684,179.74731445,1.5);
        }
        if (strcmp("/floor2", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,23.46407700,0.00000000,179.99450684,179.74731445,1.5);
        }
        if (strcmp("/floor3", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,28.48917580,0.00000000,179.99450684,179.74731445,1.5);
            }
            return 1;
        }
        if (strcmp("/floor4", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,33.48908234,0.00000000,179.99450684,179.74731445,1.5);
        }
        if (strcmp("/adminfloor", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,38.46923065,0.00000000,179.99450684,179.74731445,1.5);
        }
        if (strcmp("/floor6", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,43.46420288,0.00000000,179.99450684,179.74731445,1.5);
            }
        if (strcmp("/roof", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,48.41418457,0.00000000,179.99450684,179.74731445,1.5);
        }
return 1;
}



Re: Pawno errors - Think - 23.01.2011

Check your parameters

https://sampwiki.blast.hk/wiki/MoveObject


Re: Pawno errors - Sascha - 23.01.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])

{
        if (strcmp("/floor0", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41027832,13.53906822,1.5);//This will move the gate
        }
        if (strcmp("/floor1", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,18.46406555,1.5);
        }
        if (strcmp("/floor2", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,23.46407700,1.5);
        }
        if (strcmp("/floor3", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,28.48917580,1.5);
            }
            return 1;
        }
        if (strcmp("/floor4", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,33.48908234,0.00000000,1.5);
        }
        if (strcmp("/adminfloor", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,38.46923065,1.5);
        }
        if (strcmp("/floor6", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,43.46420288,1.5);
            }
        if (strcmp("/roof", cmdtext, true, 10) == 0)
            {
            MoveObject(lift,1882.18164062,-1315.41015625,48.41418457,1.5);
        }
return 1;
}



Re: Pawno errors - duckie - 23.01.2011

o, ive fixed it just a double return;