1 registered members (TipmyPip),
18,619
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: event impact with the right entity
[Re: Dega]
#406567
08/24/12 04:32
08/24/12 04:32
|
Joined: Jul 2008
Posts: 2,110 Germany
rayp
 
X
|
 
X
Joined: Jul 2008
Posts: 2,110
Germany
|
#include "filename" #include <filename> Reads an additional script from the given file name and then continues compiling the original script file. This way a project can contain an arbitrary number of scripts. Remarks: Scripts are read from the work folder or from subfolders; in the latter case the path to the script must be given, relative to the work folder. Due to the ambiguity of relative paths, scripts in project subfolders should not include further scripts. If the script name is given in angular brackets <..>, it is searched in the include folder. The include folder contains all common .h include files and the default.c script. If the script name is given in double quotes "...", it is first searched in the work folder, then in the path defined by PRAGMA_PATH. The file search PATHs given in a WDL file are irrelevant for #include statements. If a path to an include script begins with "%EXE_DIR%", it's searched in a subfolder of the program folder (like "%EXE_DIR%\template_7\code\template.c"). Script names must not be longer than 15 characters and must not contain spaces or nonstandard characters. If no #include statement is found in the main script, acknex.h and default.c are automatically included. Example (lite-C) #include <acknex.h> // include for Pure Mode #include <default.c> // default key functions #include <mtlFX.c> // default materials and shaders #include "scripts\venture.c" #include "%EXE_DIR%\template_7\code\template.c" See also: BIND, LEVEL, PATH, RESOURCE, PRAGMA_PATH ► latest version online
Last edited by rayp; 08/24/12 04:34.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Re: event impact with the right entity
[Re: rayp]
#406568
08/24/12 05:04
08/24/12 05:04
|
Joined: Dec 2010
Posts: 100
Dega
OP
Member
|
OP
Member
Joined: Dec 2010
Posts: 100
|
This is so strange. When I try to compile it says it is an undeclared identifier as if it has no clue what it is? I use #include <acknex.h> right?
Last edited by Dega; 08/24/12 05:19.
boolean my.awesomeness = so true;
|
|
|
Re: event impact with the right entity
[Re: rayp]
#406585
08/24/12 16:59
08/24/12 16:59
|
Joined: Dec 2010
Posts: 100
Dega
OP
Member
|
OP
Member
Joined: Dec 2010
Posts: 100
|
Well now I don't have my script anymore. The file is corrupted.  I am just going to have to redo it again but before that I pasted what you posted and it gave me the exact same compiling error.
boolean my.awesomeness = so true;
|
|
|
Re: event impact with the right entity
[Re: Dega]
#406590
08/25/12 00:09
08/25/12 00:09
|
Joined: Dec 2010
Posts: 100
Dega
OP
Member
|
OP
Member
Joined: Dec 2010
Posts: 100
|
Hey I tried to add a script through SED without using code by going to Tools->Add Script but it said it is missing a file called "template.xml"? (This is what I am starting out with my remake of this project)
Last edited by Dega; 08/25/12 00:11.
boolean my.awesomeness = so true;
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|