Compilation error
#2

Код:
#include <a_samp>
new airportgate1;

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    airportgate1	=	CreateObject(980, 1638.0999755859, -1141.1999511719, 25.700000762939, 0, 0, 358);

    return 1;
}


public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (!strcmp("/close", cmdtext))
	{
		if(IsPlayerInRangeOfPoint(playerid, 7.0, 1638.0107, -1143.5377, 23.9063))
		{
	  		MoveObject(airportgate1, 1638.0999755859, -1141.1999511719, 25.700000762939, 10.0);
			SendClientMessage(playerid, 0xEF994300, "You clicked on the remote and opened the impound gate.");
	 	}
   		return 1;
	}

	if (!strcmp("/open", cmdtext))
	{
	  if(IsPlayerInRangeOfPoint(playerid, 7.0, 1638.0107, -1143.5377, 23.9063))
 		{
 			MoveObject(airportgate1, 1638.4312,-1141.1145,45.6475, 10.0);
    		SendClientMessage(playerid, 0xEF994300, "You clicked on the remote and closed the impound gate.");
		}
		return 1;
	}
	
return 0;
}
#endif
Reply


Messages In This Thread
Compilation error - by viddo - 13.02.2012, 18:42
Re: Compilation error - by PawnFox - 13.02.2012, 19:06

Forum Jump:


Users browsing this thread: 1 Guest(s)