Pawno errors
#1

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;
}
Reply
#2

Check your parameters

https://sampwiki.blast.hk/wiki/MoveObject
Reply
#3

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;
}
Reply
#4

o, ive fixed it just a double return;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)