Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 7th_zorro), 1,285 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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