SA-MP Forums Archive
Maximum includes in a gamemde? - 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)
+--- Thread: Maximum includes in a gamemde? (/showthread.php?tid=438350)



Maximum includes in a gamemde? - Onfroi - 19.05.2013

Well like the title says, What's the maximum of includes that you can have defined in a gamemode? I looked up in ****** and wiki sa-mp and nothing came up, if someone knows please share.

EDIT: Also is there any disadvantages if you use too many includes?

Thanks.


AW: Maximum includes in a gamemde? - Nero_3D - 19.05.2013

Just look it up in pawn-lang.pdf
There is no limit ?, it just puts the code from the include into your mode
The best thing is that each include uses variables only within its scope and that it works on its own


Re: AW: Maximum includes in a gamemde? - Vince - 19.05.2013

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
The best thing is that each include uses variables only within its scope and that it works on its own
That's not strictly speaking true. If you create two globals with the same name in two different files you will still get an error. Static globals, however, are indeed restricted to their own file.