Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to declare a path?? #231278
10/13/08 13:02
10/13/08 13:02
Joined: Aug 2005
Posts: 238
Caermundh Offline OP
Member
Caermundh  Offline OP
Member

Joined: Aug 2005
Posts: 238
Im trying to declare some paths in my script like so:

PATH "models";
PATH "terrain";

But no matter what I get an "unknown identifier" error message at runtime. Ive tried declaring them in .c files, .h files and .wdl files. nothing works - i just get that same error message. How on earth do i declare a path?

Re: How to declare a path?? [Re: Caermundh] #231282
10/13/08 13:32
10/13/08 13:32
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
either create a wdl file with same name of your manin c file and use

PATH "models";
PATH "terrain";

or use

#define PRAGMA_PATH "models"
#define PRAGMA_PATH "terrain"

in lite-c


3333333333
Re: How to declare a path?? [Re: Quad] #231299
10/13/08 16:42
10/13/08 16:42
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
and if pragma_path doesn't work for you cause it is not possible to use it in all A7 versions make .wdl file of same name as your main file (example: main.c and main.wdl) and inside of main.wdl put PATH "models"; PATH "terrain"; and it will work then.



Ubi bene, ibi Patria.
Re: How to declare a path?? [Re: croman] #231332
10/13/08 19:04
10/13/08 19:04
Joined: Sep 2008
Posts: 2
L
LarsW Offline
Guest
LarsW  Offline
Guest
L

Joined: Sep 2008
Posts: 2
Have you tried putting two dots in front of one single backslash?

#define PRAGMA_PATH "..\models";

That works for me.

Re: How to declare a path?? [Re: LarsW] #231340
10/13/08 20:09
10/13/08 20:09
Joined: Aug 2005
Posts: 238
Caermundh Offline OP
Member
Caermundh  Offline OP
Member

Joined: Aug 2005
Posts: 238
ok #define PRAGMA_PATH "models"; finally worked. It didnt work the first time I tried it, but hey it works now....

Thanks all.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1