SA-MP Forums Archive
Automatic Gate Issues - 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: Automatic Gate Issues (/showthread.php?tid=161080)



Automatic Gate Issues - robert4049 - 18.07.2010

okay I'm having a few small issues please assist me.

Код:
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(284) : error 010: invalid function or declaration
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1496) : warning 217: loose indentation
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1512) : warning 217: loose indentation
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1552) : error 017: undefined symbol "playerid"
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1553) : error 017: undefined symbol "mygate_status"
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1553) : warning 215: expression has no effect
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1555) : error 017: undefined symbol "c_gate_status"
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1548) : warning 203: symbol is never used: "lspdfront_status"
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1564) : error 017: undefined symbol "playerid"
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1565) : error 017: undefined symbol "closed_X"
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1565) : error 017: undefined symbol "mygate_status"
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1565) : warning 215: expression has no effect
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1567) : error 017: undefined symbol "c_gate_status"
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1560) : warning 203: symbol is never used: "lspdgarage_status"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
Код:
//====================================================[Automatic Gates]======================================================
public CheckGate()
	{
	    new lspdfront_status;
	    for(new i;i<MAX_PLAYERS;i++)
	    {
	        if(!IsPlayerConnected(i)) continue;
	        if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
			if(IsPlayerInRangeOfPoint(i,10.0,1544.6822509766, -1630.7985839844, 13.157762527466))mygate_status=1;
	    }
	    if(c_gate_status)MoveObject(lspdfront, 1544.6822509766, -1630.7985839844, 9.157762527466, 10);
	    else MoveObject(lspdfront, 1544.6822509766, -1630.7985839844, 13.157762527466, 10);
	}
public CheckGate2()
	{
	    new lspdgarage_status;
	    for(new i;i<MAX_PLAYERS;i++)
	    {
	        if(!IsPlayerConnected(i)) continue;
	        if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
			if(IsPlayerInRangeOfPoint(i,10.0,closed_X,closed_Y,closed_Z))mygate_status=1;
	    }
	    if(c_gate_status)MoveObject(lspdgarage, 1588.498046875, -1637.7958984375, 9.4017028808594,10);
	    else MoveObject(lspdgarage, 1588.4987792969, -1637.7967529297, 14.601696014404, 10);
 		}



Re: Automatic Gate Issues - robert4049 - 19.07.2010

Bumpty Bump Bump


Re: Automatic Gate Issues - ScottCFR - 19.07.2010

Theres a lot more then the lines you posted. So if you will post the lines that the errors and warnings are or post from lines 284 to 1560.