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,561 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
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