2 registered members (NnamueN, 1 invisible),
1,489
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Lite-c Digits Bug
#249109
01/31/09 15:22
01/31/09 15:22
|
Joined: Dec 2008
Posts: 106 Germany, Berlin
Argon
OP
Member
|
OP
Member
Joined: Dec 2008
Posts: 106
Germany, Berlin
|
Hi, Ich bin im 2. Workshop von Lite-c und hab da einen ungewöhnlichen Bug ^^ Und zwar sieht bei mir die Schrift so aus: http://www.abload.de/image.php?img=hmmyxs8.pngScript: //////////////////////////////////////////////////////////////////// #include <acknex.h> #include <default.c> var a = 0; var b = 0; var c = 0; ///////////////////////////////////////////////////////////////////// PANEL* panDisplay = { digits(35, 10, "a = %0.f", *, 1, a); digits(35, 19, "b = %0.f", *, 1, b); digits(35, 28, "c = %0.f", *, 1, c); flags = VISIBLE; } ///////////////////////////////////////////////////////////////////// function main() { video_mode = 7; // erstelle ein Programmfenster von 800x600 Pixels screen_color.blue = 150; // und mache den Hintergrund dunkelblau while (1) { c = a + b; wait (1); } } Hi, I got a little problem with the Lite-c workshop 2 ^^. There is a bug on the Script.? The text style was buggy lol. Links at the top. ^^ Greets
|
|
|
Re: Lite-c Digits Bug
[Re: Argon]
#249135
01/31/09 16:50
01/31/09 16:50
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
I found the same thing, if you use the "standard" unspecified font. Set the font to anything else, say "Arial#8" and all should clear up.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Lite-c Digits Bug
[Re: Argon]
#249142
01/31/09 17:17
01/31/09 17:17
|
Joined: Aug 2008
Posts: 2,838 take me down to the paradise c...
Cowabanga
Expert
|
Expert
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
|
Put this in the code. And replace PANEL* panDisplay with this: PANEL* panDisplay =
{
digits(35, 10, "a = %0.f", arial, 1, a);
digits(35, 19, "b = %0.f", arial, 1, b);
digits(35, 28, "c = %0.f", arial, 1, c);
flags = VISIBLE;
}
|
|
|
Re: Lite-c Digits Bug
[Re: Cowabanga]
#249147
01/31/09 17:28
01/31/09 17:28
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
or even digits(35, 10, "a = %0.f", "Arial#8", 1, a); but Cowabunga's is tidier.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Lite-c Digits Bug
[Re: EvilSOB]
#249149
01/31/09 17:35
01/31/09 17:35
|
Joined: Dec 2008
Posts: 106 Germany, Berlin
Argon
OP
Member
|
OP
Member
Joined: Dec 2008
Posts: 106
Germany, Berlin
|
Thanks EvilSOB your's is working. Cowabanga i get an Error message if i go your way ^^ But thanks mates, not it looks fine =) Greets
Last edited by Argon; 01/31/09 17:35.
|
|
|
Re: Lite-c Digits Bug
[Re: Cowabanga]
#249155
01/31/09 17:45
01/31/09 17:45
|
Joined: Dec 2008
Posts: 106 Germany, Berlin
Argon
OP
Member
|
OP
Member
Joined: Dec 2008
Posts: 106
Germany, Berlin
|
When i do your way, he say: "Error in 'Main' line 13: 'digits' undeclared identifier" The way from EvilSOB works fine for me. Hmm but the problem is solved now ^^ Greets
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|