19.07.2010, 08:59
Okay I get these errors
Top
self explaintory
and the main code
now the question is what did i screw up this time :P
Код:
C:\Users\Robert\Desktop\SA-MP\gamemodes\skrp.pwn(1483) : warning 217: loose indentation C:\Users\Robert\Desktop\SA-MP\gamemodes\skrp.pwn(1550) : error 001: expected token: ")", but found "-identifier-" C:\Users\Robert\Desktop\SA-MP\gamemodes\skrp.pwn(1551) : error 001: expected token: ")", but found "-identifier-" C:\Users\Robert\Desktop\SA-MP\gamemodes\skrp.pwn(1554) : error 017: undefined symbol "playerid" C:\Users\Robert\Desktop\SA-MP\gamemodes\skrp.pwn(1558) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
forward GateCheck(); new LSPDFRONT; new LSPDGARAGE;
Код:
public OnGameModeInit()
{
LSPDFRONT = CreateObject(7657, 1542.5922851563, -1627.6103515625, 14.099655151367, 0, 0, 269.77499389648);
LSPDGARAGE = CreateObject(10184, 1591.197265625, -1630.9213867188, 14.914584159851, 0, 0, 0);
SetTimer("GateCheck",1000,1);
return 1;
}
Код:
public GateCheck()
{
new LSPDFRONTOpen;
new LSPDGARAGEOpen;
for(new playerid; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,1542.5922851563, -1627.6103515625, 14.099655151367)LSPDFRONTOpen=1;
if(IsPlayerInRangeOfPoint(playerid,10.0,1591.197265625, -1630.9213867188, 14.914584159851)LSPDGARAGEOpen=1;
}
//LSPD FRONT
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
if(LSPDFRONTOpen)MoveObject(LSPDFRONT,1542.5922851563, -1627.6103515625, 8.099655151367,8); //These are the coordinates of the gate if it were in it's opened state.
else MoveObject(LSPDFRONT,1542.5922851563, -1627.6103515625, 14.099655151367,8);//These are the coordinates of the gate if it were in it's closed state.
//LSPD GARAGE
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
if(LSPDGARAGEOpen)MoveObject(LSPDGARAGE,1591.197265625, -1630.9213867188, 8.914584159851,8); //These are the coordinates of the gate if it were in it's opened state.
else MoveObject(LSPDGARAGE, 1591.197265625, -1630.9213867188, 14.914584159851,8);//These are the coordinates of the gate if it were in it's closed state.
}

