SA-MP Forums Archive
help i get 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: help i get errors (/showthread.php?tid=75161)



help i get errors - luckie12 - 29.04.2009

help pelase i get errors

pawn Код:
C:\Documents and Settings\Luc\Bureaublad\Pawno\gamemodes\SDR.PWN(1511) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Luc\Bureaublad\Pawno\gamemodes\SDR.PWN(1511) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Luc\Bureaublad\Pawno\gamemodes\SDR.PWN(1511) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Luc\Bureaublad\Pawno\gamemodes\SDR.PWN(1511) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Warnings.
and this is te script:
pawn Код:
if (strcmp("/opengate1", cmdtext, true) == 0)
    {
        MoveObject(gate1, 980, 1557.510864, -2539.105957, 15.320267, 0.0000, 0.0000, 0.0000, 5); //5 is the speed of opening and the coords when the gate is opened
        SendClientMessage(playerid, 0x00F600AA, "GATE OPENED !");
        return 1;
    }
it says line 1511

and this is line 1511
pawn Код:
MoveObject(gate1, 980, 1557.510864, -2539.105957, 15.320267, 0.0000, 0.0000, 0.0000, 5); //5 is the speed of opening and the coords when the gate is opened
can anyone help me plzzz


Re: help i get errors - Joe Staff - 29.04.2009

Look at the definition of MoveObject, you'll notice its only
MoveObject(ObjectID,X,Y,Z,Speed);

Yours has a bunch of stuff all over the place, so fix it.


Re: help i get errors - luckie12 - 29.04.2009

Quote:
Originally Posted by SilentHuntR
Look at the definition of MoveObject, you'll notice its only
MoveObject(ObjectID,X,Y,Z,Speed);

Yours has a bunch of stuff all over the place, so fix it.
thank you very much its worked <3 ty



Re: help i get errors - *ToM* - 29.04.2009

Quote:
Originally Posted by luckie12
pawn Код:
MoveObject(gate1, 980, 1557.510864, -2539.105957, 15.320267, 0.0000, 0.0000, 0.0000, 5); //5 is the speed of opening and the coords when the gate is opened
Try to replace this one with your one
pawn Код:
MoveObject(gate1, 1557.510864, -2539.105957, 15.320267, 5);
You don't have to give the id of the gate again