[Tutorial] Make your own Radio System - PlayHard's Tutorials!
#15

pawn Код:
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Radio System is starting ..");
    print(" Radio system has started.");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    print("\n--------------------------------------");
    print(" Radio System has been shut down due to a Filterscript unload/Exit.");
    print("--------------------------------------\n");
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Radio Tutorial by PlayHard. Powered by PlayHard's Tutorials :P");
    print("----------------------------------\n");
}

#endif
In this part you know that OnFilterScriptInit() and OnFilterScriptExit() gets never called since the compiler won't compile the lines.
And main() does not get called for a filterscript.

remove the part with "#if defined FILTERSCRIPT", "#else" and "#endif".
Reply


Messages In This Thread
Make your own Radio System - PlayHard's Tutorials! - by PlayHard - 06.12.2011, 19:56
Re: Make your own Radio System - PlayHard's Tutorials! - by MathijsS - 06.12.2011, 19:57
Re: Make your own Radio System - PlayHard's Tutorials! - by Mark™ - 06.12.2011, 20:03
Re: Make your own Radio System - PlayHard's Tutorials! - by PlayHard - 07.12.2011, 04:16
Re: Make your own Radio System - PlayHard's Tutorials! - by jueix - 07.12.2011, 11:46
Re: Make your own Radio System - PlayHard's Tutorials! - by jueix - 07.12.2011, 11:54
Re: Make your own Radio System - PlayHard's Tutorials! - by PlayHard - 09.12.2011, 20:04
Re: Make your own Radio System - PlayHard's Tutorials! - by [DRuG]Mouldy - 11.12.2011, 21:59
Re: Make your own Radio System - PlayHard's Tutorials! - by PlayHard - 14.12.2011, 11:14
Re: Make your own Radio System - PlayHard's Tutorials! - by Fresh9884 - 18.12.2011, 15:14
Re: Make your own Radio System - PlayHard's Tutorials! - by PlayHard - 19.12.2011, 16:29
Re: Make your own Radio System - PlayHard's Tutorials! - by fangoth1 - 30.12.2011, 14:11
Re: Make your own Radio System - PlayHard's Tutorials! - by Dan_Barocu - 30.12.2011, 18:26
Re: Make your own Radio System - PlayHard's Tutorials! - by PlayHard - 31.12.2011, 10:50
AW: Make your own Radio System - PlayHard's Tutorials! - by BigETI - 31.12.2011, 12:06
Re: Make your own Radio System - PlayHard's Tutorials! - by Dan_Barocu - 31.12.2011, 13:30
Re: Make your own Radio System - PlayHard's Tutorials! - by [FR]Fratzica - 26.07.2012, 11:07
Re: Make your own Radio System - PlayHard's Tutorials! - by Glint - 26.07.2012, 11:24
Re: Make your own Radio System - PlayHard's Tutorials! - by Jeth - 06.08.2012, 09:10
Re: Make your own Radio System - PlayHard's Tutorials! - by Dan. - 06.08.2012, 09:12
Re: Make your own Radio System - PlayHard's Tutorials! - by Jeth - 06.08.2012, 11:24
Re: Make your own Radio System - PlayHard's Tutorials! - by gnoomen2 - 07.08.2012, 17:27
Re: Make your own Radio System - PlayHard's Tutorials! - by Vinninho - 28.12.2012, 12:55
Re: Make your own Radio System - PlayHard's Tutorials! - by Ben101 - 01.07.2013, 21:12
Re: Make your own Radio System - PlayHard's Tutorials! - by Ben101 - 01.07.2013, 21:18
Re: Make your own Radio System - PlayHard's Tutorials! - by sarab_singh - 04.09.2013, 10:48
AW: Make your own Radio System - PlayHard's Tutorials! - by BigETI - 04.09.2013, 11:21
Re: Make your own Radio System - PlayHard's Tutorials! - by sarab_singh - 04.09.2013, 11:32
AW: Re: Make your own Radio System - PlayHard's Tutorials! - by BigETI - 04.09.2013, 12:18
Re: Make your own Radio System - PlayHard's Tutorials! - by sarab_singh - 04.09.2013, 18:33
Re: Make your own Radio System - PlayHard's Tutorials! - by Isolated - 04.09.2013, 18:45
Re: Make your own Radio System - PlayHard's Tutorials! - by sarab_singh - 05.09.2013, 03:40
Re: Make your own Radio System - PlayHard's Tutorials! - by Ke_NiReM - 09.04.2014, 11:26

Forum Jump:


Users browsing this thread: 2 Guest(s)