[HELP] Automatic Gates
#6

Quote:

#if defined FILTERSCRIPT

#include <a_samp>




forward GateCheck();
new mygate;



public OnFilterscriptInit()

{
mygate=CreateObject(16775, 2063.2603, -2600.1406, 16.5461, 0.0000, 0.0000, 33.5180, 500.0);
SetTimer("GateCheck",1000,1);
}


public GateCheck()
{
new openmygate;
for(new playerid;playerid<MAX_PLAYERS;playerid++)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,2063.2603, -2600.1406, 16.5461)openmygate=1;
if(openmygate)MoveObject(mygate,2063.2507, -2600.1677, 8.5313);
else MoveObject(mygate,2063.2603, -2600.1406, 16.5461);
}



error 001: expected token: "#endif", but found "-end of file-"
error 013: no entry point (no public functions)

Reply


Messages In This Thread
[HELP] Automatic Gates - by Coltt29 - 03.12.2009, 16:51
Re: [HELP] Automatic Gates - by Rzzr - 03.12.2009, 17:40
Re: [HELP] Automatic Gates - by Joe Staff - 03.12.2009, 22:41
Re: [HELP] Automatic Gates - by Coltt29 - 04.12.2009, 13:23
Re: [HELP] Automatic Gates - by Joe Staff - 04.12.2009, 17:59
Re: [HELP] Automatic Gates - by Coltt29 - 04.12.2009, 18:16
Re: [HELP] Automatic Gates - by Joe Staff - 04.12.2009, 19:17
Re: [HELP] Automatic Gates - by Coltt29 - 05.12.2009, 12:58

Forum Jump:


Users browsing this thread: 1 Guest(s)