Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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