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
1 registered members (TipmyPip), 18,449 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
Not a member of ENTITY error in Lite-C #204059
04/26/08 01:24
04/26/08 01:24
Joined: Sep 2006
Posts: 36
Tempe, AZ
B
bpc31 Offline OP
Newbie
bpc31  Offline OP
Newbie
B

Joined: Sep 2006
Posts: 36
Tempe, AZ
I'm in the process of converting C-Script and when compiling Lite-C I get

"Error in playercar.c line 64: 'race_over' is not a member of ENTITY".

I changed these from C-Script:
//define race_over skill20;
//define counting_laps skill21;
//define laps skill22;
//define max_speed skill23;
//define min_speed skill24;
//define distance skill25;
//define scans skill26;
//define car_speed skill27;

to Lite-C according to manual but action doesn't seem to know them?

define# race_over skill20;
define# counting_laps skill21;
define# laps skill22;
define# max_speed skill23;
define# min_speed skill24;
define# distance skill25;
define# scans skill26;
define# car_speed skill27;

action players_car()
{
player = my;
my.race_over = 0;
my.counting_laps = 1;
my.laps = -1;
my.albedo = 0;
my.enable_entity = on;
my.enable_impact = on;
my.event = slowdown_player;
...
}

Thanks in advance for any suggestions!
-Bruce

Re: Not a member of ENTITY error in Lite-C [Re: bpc31] #204060
04/26/08 01:30
04/26/08 01:30
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
It's not "define#", it's "#define". Additionally you shouldn't set semicolons at the end of defines. If the error is not resolved by that try "#define race_over skills[19]".


Always learn from history, to be sure you make the same mistakes again...
Re: Not a member of ENTITY error in Lite-C [Re: Uhrwerk] #204069
04/26/08 04:10
04/26/08 04:10
Joined: Sep 2006
Posts: 36
Tempe, AZ
B
bpc31 Offline OP
Newbie
bpc31  Offline OP
Newbie
B

Joined: Sep 2006
Posts: 36
Tempe, AZ
Oh yeah, my script shows #define, but I remembered wrong. \:\) You think not having the correct define statement is causing that error? I'm trying now...Thanks much! -Bruce

Re: Not a member of ENTITY error in Lite-C [Re: bpc31] #204089
04/26/08 13:07
04/26/08 13:07
Joined: Sep 2006
Posts: 36
Tempe, AZ
B
bpc31 Offline OP
Newbie
bpc31  Offline OP
Newbie
B

Joined: Sep 2006
Posts: 36
Tempe, AZ
I actually had gotten the syntax correct previously, but it seems that my problem was the defines were only in the main script and not in the script where my action resides.

So my next question is why #define variable_name skillXX is not global?

My main script seems to have the necessary include:
#include "playercar.c"

Thanks again,
-Bruce

Re: Not a member of ENTITY error in Lite-C [Re: bpc31] #204096
04/26/08 14:19
04/26/08 14:19
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
they are not variables, once compiler saw these it change all variable_name's to skillXX and compiles this way. They are not variables just name change


3333333333

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