Hello There, Guest! Login or Register


I could use some help
#1
Hi,

As I'm a beginning scripter, I just wanted to try to make an object move with a cmd, well I tried to script it, but it keeps giving me errors. And I can't find where I'm wrong.

Code:
// Credits goto Matthias Van Eeghem aka GTA_Rules
// DO NOT Edit or release without permission

#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
new Pirateship;

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" [FS] Pirateship by Matthias");
        print("--------------------------------------\n");
        Pirateship = CreateObject(8493, 1908.9828, 543.4374, -0.4981,8, 0.0000, 0.0000, 0.0000);
        return 1;
}

public OnFilterScriptExit()
{
        return 1;
}

#else
#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp(cmdtext, "/shipup", true)==0)
       {
      MoveObject (Pirateship,1908.9828, 543.4374, -0.4981,8,0.5);
      SendClientMessage(playerid, 0x000000F, "Ship going up");
      return 1;
       }
          return 0;
}

It keeps giving me these errors:

Code:
C:\Users\Matthias\Desktop\ship.pwn(14) : warning 202: number of arguments does not match definition
C:\Users\Matthias\Desktop\ship.pwn(30) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

I hope somebody can help me.

Thanks

bye : w
Reply


Messages In This Thread
I could use some help - by [BA]Matthias - 01-28-2009, 01:34 PM
Re: I could use some help - by Jay - 01-28-2009, 01:50 PM
Re: I could use some help - by [BA]Matthias - 01-28-2009, 04:50 PM
Re: I could use some help - by Philip - 01-29-2009, 11:57 PM
Re: I could use some help - by FarePak - 01-30-2009, 12:44 AM
Re: I could use some help - by [BA]Matthias - 01-30-2009, 05:14 PM