Includes - 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: Includes (
/showthread.php?tid=476137)
Includes -
BlueBaron - 16.11.2013
Well, I decided to make a include for something. My two questions are:
- Are includes scripted the same way as filterscripts. If not, can someone explain how.
- I got some textdraws, that I want to put within the include. Where should I put them? Under public OnGameModInit()?
AW: Includes -
Skimmer - 16.11.2013
Include is a script which makes the scripting easier. It's same with scripting gamemode/filterscript. You can bind it to your script.
Imagine you have a stock function which returns the player name. You want use this on your filterscript and gamemode.
In this moment you can have a private include script (bluebaron.inc) to copy the script there.
Then you can include the file into your script and use the stock function.