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
2 registered members (AndrewAMD, TipmyPip), 16,005 guests, and 6 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
2 simple questions about entitys and buttons #204737
05/01/08 13:01
05/01/08 13:01
Joined: Feb 2007
Posts: 53
N
n00bie Offline OP
Junior Member
n00bie  Offline OP
Junior Member
N

Joined: Feb 2007
Posts: 53
Hi,

Question 1:
 Code:
entity* red

How do you translate this from C-script to C-lite? When I want to test the engine says that entity not excist...

Question 2:
 Code:
button (50, 250, "bitmaps//startknop2.pcx", "bitmaps//startknop.pcx", "bitmaps//startknop3.pcx", start_simulatie, NULL, NULL);


This won't work. Why it won't work? The pcx files are stored in the folder "bitmaps".

Last edited by n00bie; 05/01/08 13:02.
Re: 2 simple questions about entitys and buttons [Re: n00bie] #204738
05/01/08 13:04
05/01/08 13:04
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
A1:

ENTITY* red;

A2:
try defining bitmaps before you use them.


3333333333
Re: 2 simple questions about entitys and buttons [Re: Quad] #204742
05/01/08 13:20
05/01/08 13:20
Joined: Feb 2007
Posts: 53
N
n00bie Offline OP
Junior Member
n00bie  Offline OP
Junior Member
N

Joined: Feb 2007
Posts: 53
 Originally Posted By: Quadraxas
A1:

ENTITY* red;



The engine gives the error:

Entity undeclared identifier

 Originally Posted By: Quadraxas

A2:
try defining bitmaps before you use them.


How do you mean this? \:\)

Re: 2 simple questions about entitys and buttons [Re: n00bie] #204753
05/01/08 14:28
05/01/08 14:28
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
make sure you are using .c extension for your script file and make sure you ve written capitals as i ve written.

ENTITY* must be all capital letters.


for defiing bitmaps:

for lite-c:
//bitmaps defined this way.
BMAP* sbutton1 = "bitmaps//startknop2.pcx";
BMAP* sbutton2 = "bitmaps//startknop.pcx";
BMAP* sbutton3 = "bitmaps//startknop3.pcx";


button (50, 250,sbutton1,sbutton2,sbutton3, start_simulatie, NULL, NULL);


3333333333
Re: 2 simple questions about entitys and buttons [Re: Quad] #204769
05/01/08 15:50
05/01/08 15:50
Joined: Feb 2007
Posts: 53
N
n00bie Offline OP
Junior Member
n00bie  Offline OP
Junior Member
N

Joined: Feb 2007
Posts: 53
 Originally Posted By: Quadraxas

ENTITY* must be all capital letters.


It are capital letters, but still the same problem... I've use by the way Gamestudio A7.07.

And thanks for the explaining of bitmaps. This works. \:\)

Last edited by n00bie; 05/01/08 15:51.
Re: 2 simple questions about entitys and buttons [Re: n00bie] #204770
05/01/08 15:56
05/01/08 15:56
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
are you including acknex.h ???

add this as first line
#include <acknex.h>


3333333333
Re: 2 simple questions about entitys and buttons [Re: Quad] #204786
05/01/08 17:57
05/01/08 17:57
Joined: Feb 2007
Posts: 53
N
n00bie Offline OP
Junior Member
n00bie  Offline OP
Junior Member
N

Joined: Feb 2007
Posts: 53
 Originally Posted By: Quadraxas
are you including acknex.h ???

add this as first line
#include <acknex.h>


Thanks! I've first the Entity line and a few lines below the include line. Now I switched this and it works \:\)


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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