14.09.2016, 09:39
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:
my_map.txt
main script:
PHP код:
public OnGameModeInit()
{
#include ..\source\maps\my_map.txt
return 1;
}
PHP код:
CreateObject(...);
CreateObject(...);
CreateObject(...);