C:\Documents and Settings\Luc\Bureaublad\Pawno\gamemodes\SDR.PWN(1413) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
MoveObject(gate1, 980, 1385.557617, -2688.828857, 272.734619, 5); //5 is the speed of opening and the coords when the gate is opened
MoveObject(gate1, 1385.557617, -2688.828857, 272.734619, 5); //5 is the speed of opening and the coords when the gate is opened
Originally Posted by Ettans
You don't need to put the object id in MoveObject, since the native of it is: MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed).
|
Originally Posted by Ettans
You don't need to put the object id in MoveObject, since the native of it is: MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed).
|
if (strcmp("/opengate1", cmdtext, true) == 0)
{
MoveObject(gate1, 1385.557617, -2688.828857, 272.734619, 5); //5 is the speed of opening and the coords when the gate is opened
SendClientMessage(playerid, 0x00F600AA, "GATE OPENED !");
return 1;
}
CreateObject(980, 1385.557617, -2688.828857, 272.734619, 0.0000, 0.0000, 270.0000);
new gate1;
gate1 = CreateObject(980, 1385.557617, -2688.828857, 272.734619, 0.0000, 0.0000, 270.0000); // coords of closed gate
if (strcmp("/opengate1", cmdtext, true) == 0)
{
MoveObject(gate1, 980, 1385.557617, -2688.828857, 5); //5 is the speed of opening and the coords when the gate is opened
SendClientMessage(playerid, 0x00F600AA, "GATE OPENED !");
return 1;
}
MoveObject(gate1, 1385.557617, -2688.828857, 272.734619,1.5); |