[Tutorial] Modular Programming
#24

Quote:
Originally Posted by Kimble
View Post
If i include y_hooks in main do i still need to include it in every other module?
Yes, you do. It is the only one you need to.

y_hooks will assign a new ID to each script every time it's included, example with OnPlayerConnect:

Code:
public OnPlayerConnect1(); //first time it's included
public OnPlayerConnect2(); //second time it's included
If you only define it once and have OnPlayerConnect in more than one script, it will define all of them as OnPlayerConnect1, which of course will give you problems.
Reply


Messages In This Thread
Modular Programming - by PatrickGTR - 29.12.2015, 20:23
Re: Modular Programming - by CrazyChoco - 29.12.2015, 20:27
Re: Modular Programming - by Sasino97 - 29.12.2015, 21:03
Re: Modular Programming - by Pottus - 29.12.2015, 21:17
Re: Modular Programming - by Dayvison_ - 29.12.2015, 21:28
Re: Modular Programming - by VincenzoDrift - 30.12.2015, 09:13
Re: Modular Programming - by PatrickGTR - 30.12.2015, 13:15
Re: Modular Programming - by [XST]O_x - 30.12.2015, 13:22
Re: Modular Programming - by PrO.GameR - 30.12.2015, 13:32
Re: Modular Programming - by PatrickGTR - 30.12.2015, 14:47
Re: Modular Programming - by AndySedeyn - 01.01.2016, 03:14
Re: Modular Programming - by PatrickGTR - 01.01.2016, 17:54
Re: Modular Programming - by AndySedeyn - 01.01.2016, 18:05
Re: Modular Programming - by PatrickGTR - 01.01.2016, 18:21
Re: Modular Programming - by AndySedeyn - 01.01.2016, 18:26
Re: Modular Programming - by Kimble - 06.09.2016, 20:41
Re: Modular Programming - by PrO.GameR - 06.09.2016, 21:51
Re: Modular Programming - by SickAttack - 06.09.2016, 21:52
Re: Modular Programming - by K0P - 07.09.2016, 16:55
Re: Modular Programming - by Misiur - 07.09.2016, 17:17
Re: Modular Programming - by Crayder - 07.09.2016, 17:48
Re: Modular Programming - by OneDay - 07.09.2016, 19:12
Re: Modular Programming - by AndySedeyn - 07.09.2016, 19:37
Re: Modular Programming - by TakeiT - 22.09.2016, 22:30
Re: Modular Programming - by Alcatrik - 03.10.2016, 14:50
Re: Modular Programming - by SickAttack - 03.10.2016, 17:20
Re: Modular Programming - by Crayder - 03.10.2016, 18:00
Re: Modular Programming - by SickAttack - 03.10.2016, 22:24
Re: Modular Programming - by theralio - 11.01.2019, 08:12
Re: Modular Programming - by GRiMMREAPER - 13.01.2019, 14:41
Re: Modular Programming - by RogueDrifter - 21.01.2019, 18:42
Re: Modular Programming - by Calisthenics - 21.01.2019, 18:56
Re: Modular Programming - by Logic_ - 23.01.2019, 07:05

Forum Jump:


Users browsing this thread: 2 Guest(s)