SA-MP Forums Archive
Warning 202 please help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Warning 202 please help (/showthread.php?tid=94431)



Warning 202 please help - Scones - 29.08.2009

C:\Users\Joachim\Desktop\JimmA12.pwn(37417) : warning 202: number of arguments does not match definition

Im getting this warning and here's the line:
Код:
	MoveObject(NGGate,-1529.102539, 482.326508, 3.407202);
and that line is a part of

Код:
public closegate(playerid)
{

	if (PlayerInfo[playerid][pMember] == 1)
	{
	SetObjectRot(LSPDBarrier1,0.000000,89.000000,269.818847);
	MoveObject(LSPDGate1, 1588.265991,-1638.143554,15.014236,4.0);
	return 1;
	}
	if (PlayerInfo[playerid][pMember] == 3)
	{
	MoveObject(NGGate,-1529.102539, 482.326508, 3.407202);
	return 1;
	}
	if (PlayerInfo[playerid][pMember] == 5)
	{
	MoveObject(MAFIAGATE,1245.628784,-767.291138,93.831070,5); // Moves the object
	return 1;
	}
	if (PlayerInfo[playerid][pMember] == 12)
	{
	MoveObject(CRACKGATE,-2126.487549, -80.676598, 37.093704,5); // Moves the object
	return 1;
	}

  return 1;
}



Re: Warning 202 please help - Correlli - 29.08.2009

You forgot the speed:
Quote:

MoveObject(NGGate,-1529.102539, 482.326508, 3.407202, 5.0); // example speed.




Re: Warning 202 please help - Scones - 29.08.2009

Thank you VERY much...