warning : number of arguments does not match definition
#1

Код:
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;
}
Reply
#2

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

Ty!
+rep for the help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)