19.07.2010, 07:33
my current code
errors
Код:
public LSPDFGateTimer(playerid)//lspd front entrance autogates
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 1541.4320,-1627.3322,13.3828))
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
{
MoveObject(LSPDFRONT,1542.3559570313, -1627.8432617188, 10.699661254883, 8.0);
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Please be patient while the gate to this facility is opening.");
SetTimer("LSPDFGateClose",10000, 0);
}
}
}
return 1;
}
public LSPDFGateClose()
{
MoveObject(LSPDFRONT, 1542.3559570313, -1627.8432617188, 14.099655151367, 8);
return 1;
}//end of lspd front gate
public LSPDGGateTimer(playerid)//lspd garage
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 1588.0067 , -1636.1232 , 13.3828))
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
{
MoveObject(LSPDGARAGE, 1592.837890625, -1638.1611328125, 9.7574806213379, 8.0);
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Please be patient while the gate to this facility is opening.");
SetTimer("LSPDGateClose",10000, 0);
}
}
}
return 1;
}
public LSPDGGateClose()
{
MoveObject(LSPDGARAGE, 1592.837890625, -1638.1611328125, 9.7574806213379, 8.0);
return 1;
}//end of lspd garage
Код:
C:\Users\Robert\Desktop\SA-MP\gamemodes\skrp.pwn(1725) : warning 202: number of arguments does not match definition C:\Users\Robert\Desktop\SA-MP\gamemodes\skrp.pwn(1747) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 6480 bytes Code size: 563536 bytes Data size: 1373624 bytes Stack/heap size: 16384 bytes; estimated max. usage=4086 cells (16344 bytes) Total requirements: 1960024 bytes

