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
2 registered members (TipmyPip, AndrewAMD), 14,136 guests, and 5 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
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 | 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