help i get errors
#1

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

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.
Reply
#3

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)