SA-MP Forums Archive
Using includes, or direct in script? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Using includes, or direct in script? (/showthread.php?tid=173175)



Using includes, or direct in script? - ||123|| - 01.09.2010

Which one is faster? Is it faster if I just use #include <bla> or copy the include files clearly on the gamemode and use it. Which one?


Re: Using includes, or direct in script? - Mike Garber - 01.09.2010

None is faster - thats ye thing with includes.
It's in the name - include.

When you hit Compile the include is INCLUDED in your gamemode, so It's just like you put it directly into your gamemode.

But the advantages is that you can download the latest version from the author without worry.


Re: Using includes, or direct in script? - ||123|| - 01.09.2010

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
None is faster - thats ye thing with includes.
It's in the name - include.

When you hit Compile the include is INCLUDED in your gamemode, so It's just like you put it directly into your gamemode.

But the advantages is that you can download the latest version from the author without worry.
100% no effect?


Re: Using includes, or direct in script? - Vince - 01.09.2010

Any line that has a hash sign (#) in front of it, is processed by the pre-processor. This is done before the actual compiling. The pre-processor basically copies the file into your gamemode. It doesn't affect CPU or RAM usage at all.


Re: Using includes, or direct in script? - Mike Garber - 01.09.2010

Yes, no effect at all.