SA-MP Forums Archive
warning : number of arguments does not match definition - 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)
+--- Thread: warning : number of arguments does not match definition (/showthread.php?tid=543100)



warning : number of arguments does not match definition - TheKnown - 24.10.2014

Код:
C:\Users\Nikola\Desktop\Papki\samp\gamemodes\Trucking1.pwn(19589) : warning 202: number of arguments does not match definition
C:\Users\Nikola\Desktop\Papki\samp\gamemodes\Trucking1.pwn(19589) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Код:
new adgarage;
The warning(line: 19589):
Код:
adgarage = CreateObject(980, 1621.727661, -1859.781005, 15.050171, 182.750305);
This is after the warning:
Код:
COMMAND:adopen(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 1621.727661, -1859.781005, 15.050171))
    {
        if(APlayerData[playerid][PlayerLevel] >= 1)
        {
            MoveObject(adgarage, 1621.727661, -1859.781005, 15.050171, 2.0);
            SendClientMessage(playerid, -1, "Gate Opened!");
		}
	}
	return 1;
}
COMMAND:adclose(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 1621.727661, -1859.781005, 15.050171))
    {
        if(APlayerData[playerid][PlayerLevel] >= 1)
        {
            MoveObject(adgarage, 1621.727661, -1859.781005, 15.050171, 2.0);
            SendClientMessage(playerid, -1, "Gate Closed!");
		}
	}
	return 1;
}



Re: warning : number of arguments does not match definition - Rudy_ - 24.10.2014

pawn Код:
adgarage = CreateObject(980, 1621.727661, -1859.781005, 15.050171, 182.750305, 0, 0);



Re: warning : number of arguments does not match definition - TheKnown - 24.10.2014

Ty!
+rep for the help