how to create 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: how to create includes? (
/showthread.php?tid=617017)
how to create includes? -
XHunterZ - 14.09.2016
^^^^^^^^
Re: how to create includes? -
SickAttack - 14.09.2016
Open notepad, save text file as .inc. Write in it.
Re: how to create includes? -
XHunterZ - 14.09.2016
what to write? i wanna know its functions..
Re: how to create includes? -
JaydenJason - 14.09.2016
Quote:
Originally Posted by XHunterZ
what to write? i wanna know its functions..
|
You make your own functions in there.
Re: how to create includes? -
Vince - 14.09.2016
An include is nothing more than a piece of Pawn code. The compiler essentially takes the contents of that file and inserts it at the specified place in the main script. The include directive can appear anywhere and an included file can contain any content. This is valid:
main script:
PHP код:
public OnGameModeInit()
{
#include ..\source\maps\my_map.txt
return 1;
}
my_map.txt
PHP код:
CreateObject(...);
CreateObject(...);
CreateObject(...);
Re: how to create includes? -
BurnZ - 14.09.2016
Pretty sure there is a tutorial. Oh well, here it is, made by Fratello aka ShutDown.
https://sampforum.blast.hk/showthread.php?tid=611273
Re: how to create includes? -
Shinja - 14.09.2016
Here is best includes tutorial, enjoy
https://sampforum.blast.hk/showthread.php?tid=497081
Re: how to create includes? -
Fratello - 14.09.2016
Lordy made full tutorial I made basics for newbies.
Look at my tutorial if you want to. In your includes put something special, worth. Like mySQL connection or i dont know, some systems such as headshot, ( not so ) but ok.
If some-one has only GM(without includes ( most part )) he cant complie or run it at all.
Link : https://sampforum.blast.hk/showthread.php?tid=611273
Thanks BurnZ for sharing the link, finally someone after 500 years hahah lol.