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
4 registered members (AndrewAMD, TipmyPip, NewbieZorro, Grant), 14,196 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
green asterix #224196
08/29/08 04:17
08/29/08 04:17
Joined: Jun 2008
Posts: 21
S
sensai Offline OP
Newbie
sensai  Offline OP
Newbie
S

Joined: Jun 2008
Posts: 21
Note that in lite-C pointers are generally defined with a '*', so the green * is required for lite-C, but must be omitted in C-Script.

whats the secret to getting a green asterix ? this is strange to me thanks in advance

Re: green asterix [Re: sensai] #224198
08/29/08 04:22
08/29/08 04:22
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
hmmm, i've never seen a green asterisk when defining pointers? Where have you seen this green asterisk?

Re: green asterix [Re: DJBMASTER] #224201
08/29/08 04:43
08/29/08 04:43
Joined: Jun 2008
Posts: 21
S
sensai Offline OP
Newbie
sensai  Offline OP
Newbie
S

Joined: Jun 2008
Posts: 21
if you type string in the search engine of game studio manual you will find the quote i pulled out of there its
title location rank
Strings Script Language 6


Strings are a plain sequence of alphanumerical characters - letters, numbers or symbols - which can be used for messages, onscreen menus or text panels. They are defined this way:

STRING* name = "characters";
Defines a global string pointer with the given name and initializes it to the content characters between double quotation marks. If the character content is spread over several lines, line feeds are automatically inserted. LC Note that in lite-C pointers are generally defined with a '*', so the green * is required for lite-C, but must be omitted in C-Script.

thats more of the quote

Re: green asterix [Re: sensai] #224202
08/29/08 04:47
08/29/08 04:47
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
LOL, that's only the manual illustrating that for lite-c you must have a * after a string. It is only coloured green in the manual to stand out to the user. You cannot actually get a coloured * in code, lol.

Never mind...keep learning, lol.

Re: green asterix [Re: DJBMASTER] #224204
08/29/08 05:15
08/29/08 05:15
Joined: Jun 2008
Posts: 21
S
sensai Offline OP
Newbie
sensai  Offline OP
Newbie
S

Joined: Jun 2008
Posts: 21
lol ok that makes sence,, what was confusing was
LC Note that in lite-C pointers are generally defined with a '*' << not green
so the green * is required for lite-C <<< this asterix was green

i thought they were trying to tell me something different lol
well now that i got that out of my system thanks a lot

Re: green asterix [Re: sensai] #224205
08/29/08 05:24
08/29/08 05:24
Joined: Jun 2008
Posts: 21
S
sensai Offline OP
Newbie
sensai  Offline OP
Newbie
S

Joined: Jun 2008
Posts: 21
ok here is something that initially made me aske the question
STRING* Test="hello"; that gives me an error
STRING* Test; gives me no error
what did i do wrong?

Re: green asterix [Re: sensai] #224207
08/29/08 05:33
08/29/08 05:33
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
hmmm... STRING* Test="hello"; wont produce an error, it's set up correctly.

You must be doing something else wrong.

Do you have

#include <acknex.h>
#include <default.c>

at the top of your script?

Re: green asterix [Re: DJBMASTER] #224208
08/29/08 05:42
08/29/08 05:42
Joined: Jun 2008
Posts: 21
S
sensai Offline OP
Newbie
sensai  Offline OP
Newbie
S

Joined: Jun 2008
Posts: 21
<<.>> hmn i guess includes would make a difference, there wasnt any listed in any of the gamestudio manuals,,,when i was reading them i guess im used to a different format of code

int nNumber=5;
string sWord="word";
float fDecimal=2.53984;
void Myvoid(int,nNumber);

ok thanks,, sorry to be a pain and I apapreciate all the guidance i can get while stumbling through this,, I bet those includes will solve a lot of my problems.
Do i need to state any paths for these at all ? or if they are all in the same existing folder with my wdl then all is good?

Re: green asterix [Re: sensai] #224224
08/29/08 07:42
08/29/08 07:42
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Originally Posted By: sensai

Do i need to state any paths for these at all ? or if they are all in the same existing folder with my wdl then all is good?


wdl? This is the lite-c programming forum, wdl is c-script and cannot be used for lite-c. Seems you are confusing the languages.

Includes definetely make a difference. Without them you cannot use many of the internal objects like strings, texts, bmaps and panels.

You wont need a path to them, they are found automatically by SED.

From what you've asked i am guessing that you havent worked through the lite-c workshops. You can find them on the downloads page. They cover alot of what you have asked and get you started with the fundamentals of the engine.

Originally Posted By: sensai

sorry to be a pain and I apapreciate all the guidance i can get while stumbling through this...


LOL, that's what we're here for, to answer questions.

Re: green asterix [Re: DJBMASTER] #224285
08/29/08 13:28
08/29/08 13:28
Joined: Jun 2008
Posts: 21
S
sensai Offline OP
Newbie
sensai  Offline OP
Newbie
S

Joined: Jun 2008
Posts: 21
ok thats where the confusion is, every c program i have ever done was saved as a ****.c for a main or ***.h for a header or ****.o for object and so i assumed ***.wdl was for c-lite. I will gander over these tutorials, I guess there is a little more required to this then your basic programming knowledge. thank you very much. You are extremely helpful ill come back when i have completed these tutorials, as i am sure they have some information for me.


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