01-28-2009, 01:34 PM
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.
It keeps giving me these errors:
I hope somebody can help me.
Thanks
bye : w
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