how to create includes?
#5

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(...); 
Reply


Messages In This Thread
how to create includes? - by XHunterZ - 14.09.2016, 07:26
Re: how to create includes? - by SickAttack - 14.09.2016, 07:30
Re: how to create includes? - by XHunterZ - 14.09.2016, 07:31
Re: how to create includes? - by JaydenJason - 14.09.2016, 07:35
Re: how to create includes? - by Vince - 14.09.2016, 09:39
Re: how to create includes? - by BurnZ - 14.09.2016, 09:55
Re: how to create includes? - by Shinja - 14.09.2016, 12:56
Re: how to create includes? - by Fratello - 14.09.2016, 13:15

Forum Jump:


Users browsing this thread: 3 Guest(s)