Gamestudio Links
Zorro Links
Newest Posts
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
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 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
Engine Crash because of pointer!?! #175654
12/31/07 22:45
12/31/07 22:45
Joined: Mar 2003
Posts: 1,095
Germany
nightshade Offline OP
Serious User
nightshade  Offline OP
Serious User

Joined: Mar 2003
Posts: 1,095
Germany
Hello all.

SED, Engine crashes if I run following script :

Code:

ENTITY* testent;
action test_ent {
testent = me;
}

int zahl = 2;

int main() {
...
if (zahl == 2) {
testent.x = 55;
}
...



It crashes this way, but
if I try to do printf("hello?!?!"); instead of testent.x == 55; I get no errors. So what am I doing wrong?

Last edited by nightshade; 12/31/07 22:46.
Re: Engine Crash because of pointer!?! [Re: nightshade] #175655
12/31/07 22:47
12/31/07 22:47
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
I think you need a wait(3); after your level_load, for your entities are not yet loaded and you run the script already.


Click and join the 3dgs irc community!
Room: #3dgs

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

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