#endif", but found "-end of file-"
#8

Hello.
Its really easy.

If this is in the top of your script:

Код:
#if defined FILTERSCRIPT
You need this in your script also:

Код:
#endif
Heres the top of a new .pwn file

Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

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

#endif
You see if its a filterscript you can cut it down, and make it look like this:

Код:
#include <a_samp>

#define FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}
easy as hell
Reply


Messages In This Thread
#endif", but found "-end of file-" - by [HKS]dlegend - 16.11.2009, 01:34
Re: #endif", but found "-end of file-" - by AKA_Cross - 16.11.2009, 03:37
Re: #endif", but found "-end of file-" - by Abernethy - 16.11.2009, 03:41
Re: #endif", but found "-end of file-" - by [HKS]dlegend - 16.11.2009, 04:18
Re: #endif", but found "-end of file-" - by [Marevin*] - 16.11.2009, 14:05
Re: #endif", but found "-end of file-" - by LarzI - 16.11.2009, 14:22
Re: #endif", but found "-end of file-" - by [HKS]dlegend - 16.11.2009, 14:40
Re: #endif", but found "-end of file-" - by Niixie - 24.11.2009, 19:55
Re: #endif", but found "-end of file-" - by yom - 24.11.2009, 21:32
Re: #endif", but found "-end of file-" - by jamesbond007 - 25.11.2009, 05:23

Forum Jump:


Users browsing this thread: 1 Guest(s)