Gamestudio Links
Zorro Links
Newest Posts
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
2 registered members (alibaba, vicknick), 1,492 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
my.skill1 = empty pointer? #179909
01/25/08 13:36
01/25/08 13:36
Joined: Dec 2003
Posts: 129
Osnabrück, Germany
Ready Offline OP
Member
Ready  Offline OP
Member

Joined: Dec 2003
Posts: 129
Osnabrück, Germany
ok, whats wrong with this?
Code:


action message_display
{
...
stuff here
...
if (my.SKILL1 == 1)
{
...
do stuff
...
}
}


skill1 of that entity is set in WED to 1 but every time I run this, I get an empty pointer error for my.skill1?!


Do not underestimate people because they have a low post count... :0
Re: my.skill1 = empty pointer? [Re: Ready] #179910
01/25/08 13:47
01/25/08 13:47
Joined: Dec 2003
Posts: 129
Osnabrück, Germany
Ready Offline OP
Member
Ready  Offline OP
Member

Joined: Dec 2003
Posts: 129
Osnabrück, Germany
doh!
Stupid me ...
That action is setup so that it removes the entity when the player touches it (more lke, when its in 100 units range) and I had ent_remove (my); in the action BEFORE that if branch.
No wonder its an empty pointer, when that entity is already removed ^^

So yeah .. nevermind.


Do not underestimate people because they have a low post count... :0

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