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
1 registered members (TipmyPip), 18,484 guests, and 6 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
include wdls??? #162375
10/20/07 17:42
10/20/07 17:42
Joined: Oct 2007
Posts: 49
Hildesheim, Germany
benni Offline OP
Newbie
benni  Offline OP
Newbie

Joined: Oct 2007
Posts: 49
Hildesheim, Germany
Hello,
I'm absolutely new to programming and I started learnig c-lite a few days ago.
Now I have a question and I didn't find anything about it on the web and among the tutorials - maybe it is a stupid question ...
I want to keep my script small and not too complicated. For that purpose I want to split it in several parts, and include those parts to my main script. I tried to load those parts with #include "blabla.wdl" , but I don't know how to make my main script use those included parts, it doesn't recognize the variables and is not able to use their functions.
Does anybody know a tutorial about this? Or can anybody help me?
Thank you for your help!

Re: include wdls??? [Re: benni] #162376
10/20/07 19:46
10/20/07 19:46

A
Anonymous
Unregistered
Anonymous
Unregistered
A



your include scripts must be .c files #include "blabla.c" if your main file is a .c file... also make sure the first to inculdes are...#include <acknex.h>
#include <default.c>

Re: include wdls??? [Re: ] #162377
10/20/07 21:31
10/20/07 21:31
Joined: Oct 2007
Posts: 49
Hildesheim, Germany
benni Offline OP
Newbie
benni  Offline OP
Newbie

Joined: Oct 2007
Posts: 49
Hildesheim, Germany
Thanks for your help, now it works!

Re: include wdls??? [Re: benni] #162378
10/21/07 15:48
10/21/07 15:48
Joined: May 2007
Posts: 175
Germany
dblade Offline
Member
dblade  Offline
Member

Joined: May 2007
Posts: 175
Germany
Hey, another cool thing is, that you can
define a wdl file with a name similar to your main script ("main.c", "main.wdl")
This file will also be compiled.
You can use this wdl file for your project settings (paths, etc.) because
the path and dir settings aren't supported by liteC.

Re: include wdls??? [Re: dblade] #162379
10/28/07 14:22
10/28/07 14:22
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Thus the reason for my "undeclared identifiers"....having some issues with this...now I know why.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/

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