Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
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 (AbrahamR, AndrewAMD), 1,278 guests, and 2 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
Page 1 of 2 1 2
FONT* not working?? #234238
11/01/08 19:26
11/01/08 19:26
Joined: Mar 2004
Posts: 206
The Netherlands
R
Roy Offline OP
Member
Roy  Offline OP
Member
R

Joined: Mar 2004
Posts: 206
The Netherlands
Hello,

I've tried to set a font for my text in lite-c, but for some (strange?) reason it won't work. I've done this:

FONT* arial_font = "Arial#14b";

To me, it seems right, but the engine thinks differently.
When i hit the run button, i get the following error:

Keyword unknowd FONT*

What is happening?

Thanks,

Roy

Re: FONT* not working?? [Re: Roy] #234241
11/01/08 19:40
11/01/08 19:40
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
are you sure you are using lite-c and that the script's file extension is .c and not .wdl?

If it's .wdl, it's c-script and this syntax is wrong.

Re: FONT* not working?? [Re: Roy] #234243
11/01/08 19:41
11/01/08 19:41
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
or you forgot to include acknex.h

Last edited by Quadraxas; 11/01/08 19:41.

3333333333
Re: FONT* not working?? [Re: Quad] #234245
11/01/08 19:46
11/01/08 19:46
Joined: Mar 2004
Posts: 206
The Netherlands
R
Roy Offline OP
Member
Roy  Offline OP
Member
R

Joined: Mar 2004
Posts: 206
The Netherlands
I did indeed not include acknex.h, because if i include it:

<#include <acknex.h> #include <default.c> BMAP* name = "file.bmp";>
Script error - No C code in .WDL scripts!

with the following script:
#include <acknex.h>
#include <default.c>
BMAP* name = "file.bmp";

I've just updated a7 (that might be the problem)
Before i updated, everything (except the font definition) worked fine. Because the font didn't work, i updated. But then it only got worse...

I am sure that is .c

Roy

Re: FONT* not working?? [Re: Roy] #234255
11/01/08 20:38
11/01/08 20:38
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Script error - No C code in .WDL scripts!

meanss it is a wdl, make sure it is not .c.wdl


3333333333
Re: FONT* not working?? [Re: Quad] #234257
11/01/08 20:57
11/01/08 20:57
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
when you save your script, you have to explicitly write .c as the extension.

Re: FONT* not working?? [Re: DJBMASTER] #234262
11/01/08 21:13
11/01/08 21:13
Joined: Mar 2004
Posts: 206
The Netherlands
R
Roy Offline OP
Member
Roy  Offline OP
Member
R

Joined: Mar 2004
Posts: 206
The Netherlands
I'm sorry, it indeed wasn't a .c
Thanks for your help!

Roy

Re: FONT* not working?? [Re: Roy] #236033
11/11/08 15:46
11/11/08 15:46
Joined: Jul 2008
Posts: 4
maffmommie Offline
Guest
maffmommie  Offline
Guest

Joined: Jul 2008
Posts: 4
I am having the same problem. I made sure that my file extension was .c and not .wdl. I added acknex.h along with the supplementary files and this is the error I'm getting:


< #include <litec.h> #include <compat.h> typedef fixed var;>
acknex.h 10:0 (): Script error - no C code in .WDL scripts!

< typedef fixed function;>
acknex.h 11:0 (): Keyword unknown typedef

< typedef void action;>
acknex.h 12:0 (): Keyword unknown typedef

< #include <atypes.h> #define EXT #define F(f) f #define afuncs_dll_h>
acknex.h 24:0 (): Script error - no C code in .WDL scripts!

< STRING* txt_str^TEXT*);>
acknex.h 31:3 (): Syntax error - TEXT* invalid character *

Re: FONT* not working?? [Re: maffmommie] #236044
11/11/08 16:37
11/11/08 16:37
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
have you added it like:
#include <acknex.h>



Ubi bene, ibi Patria.
Re: FONT* not working?? [Re: croman] #236055
11/11/08 17:12
11/11/08 17:12
Joined: Jul 2008
Posts: 4
maffmommie Offline
Guest
maffmommie  Offline
Guest

Joined: Jul 2008
Posts: 4
no i included like this:
include <acknex.h>

when I change it to #include <acknex.h> I get another error that says that

Error in MAIN line 9: 'path' undeclared identifier
path "..\\template_6"

Last edited by maffmommie; 11/11/08 17:19.
Page 1 of 2 1 2

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