Gamestudio Links
Zorro Links
Newest Posts
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 2,814 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joe_kane, Namitha_NN, Syndrela, agasior, mosfet
19189 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Can anyone help me with this line of code #247121
01/19/09 07:24
01/19/09 07:24
Joined: Nov 2008
Posts: 41
????????????
D
Dansta Offline OP
Newbie
Dansta  Offline OP
Newbie
D

Joined: Nov 2008
Posts: 41
????????????
Hi i have done the lite-c workshop but the lines i dont get is...

PANEL* pDisplay =
{
digits (10, 10, 5, *, 1, number_of_days);
flags = VISIBLE;
}

What does the digits do? And what does the pdisplay mean? Oh yh and when i type this script up into my own the errors occor here?


Mmmmmmmmmmmmmmmmmmmmmm...Donuts!!!
Re: Can anyone help me with this line of code [Re: Dansta] #247132
01/19/09 08:10
01/19/09 08:10
Joined: Jan 2009
Posts: 36
Philippines
U
unknown_master Offline
Newbie
unknown_master  Offline
Newbie
U

Joined: Jan 2009
Posts: 36
Philippines
"digits" is the included variables that displaying a number only, "pDisplay" is the defined variables of your PANEL* have. you change it any name you want. i think that "number_of_days" in your code is not defined, maybe it must a function number_of_days(). try it and i think it will run.



From: Philippine Game Developers.

Re: Can anyone help me with this line of code [Re: Dansta] #247219
01/19/09 14:51
01/19/09 14:51
Joined: Nov 2008
Posts: 20
D
deyshawn Offline
Newbie
deyshawn  Offline
Newbie
D

Joined: Nov 2008
Posts: 20
number of days is a variable that is being displayed here. You will need to define it if you haven't already. "5" is the format. I just finished the workshops myself, but (if this is workshop 2 that you are reffereing to), the "5" in your code is "a = %0.f". So, if you want "number_of days" to be displayed like the calculator in the workshop, your code would look like

PANEL* pDisplay =
{
digits(10, 10, "number_of_days %0.f", *, 1, number of days);
flags = VISIBLE;
}

Again, number_of_days must be defined as a var at the top of your code. Hope this helps.
-Deyshawn

Re: Can anyone help me with this line of code [Re: deyshawn] #247234
01/19/09 16:13
01/19/09 16:13
Joined: Nov 2008
Posts: 41
????????????
D
Dansta Offline OP
Newbie
Dansta  Offline OP
Newbie
D

Joined: Nov 2008
Posts: 41
????????????
Thx guys u really helped
-Dansta


Mmmmmmmmmmmmmmmmmmmmmm...Donuts!!!

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