Object help!
#4

i tried the moveing gate script but i still got 2 errors
#include <a_samp>

new aGate;

public OnGameModeInit()
{
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
aGate = CreateObject(969,2482.2783,-1688.2960,13.5078,175.3654,0.00000000,0.00000000,9 0.00000000);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp ("/gate", cmdtext, true) == 0)
{
MoveObject(aGate, 2482.2783,-1688.2960,13.5078,175.3654,2);//This will move the gate
return 1;
}
if(strcmp ("/closegate", cmdtext, true) == 0)
{
MoveObject(aGate, 2482.2783,-1688.2960,13.5078,175.3654,2);//This will move the gate back to the old position
return 1;
}

return 0;
}

C:\Users\Kyle\Desktop\server1\Raven's Roleplay 0.3c\filterscripts\gate1.pwn(17) : warning 202: number of arguments does not match definition
C:\Users\Kyle\Desktop\server1\Raven's Roleplay 0.3c\filterscripts\gate1.pwn(22) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

this is the location that i /save AddPlayerClass(294,2482.2783,-1688.2960,13.5078,175.3654,0,0,0,0,0,0); //
and the gate object id is 969
Reply


Messages In This Thread
Object help! - by KissOfDeath - 03.05.2011, 04:18
Re: Object help! - by Ironboy - 05.05.2011, 04:16
Re: Object help! - by Stigg - 05.05.2011, 04:30
Re: Object help! - by KissOfDeath - 22.05.2011, 10:28
Re: Object help! - by Steve M. - 22.05.2011, 10:42
Re: Object help! - by KissOfDeath - 22.05.2011, 12:15
Re: Object help! - by Skidmarks - 22.05.2011, 12:23
Re: Object help! - by KissOfDeath - 22.05.2011, 13:10
Re: Object help! - by KissOfDeath - 23.05.2011, 10:05

Forum Jump:


Users browsing this thread: 2 Guest(s)