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,574 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
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 | 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