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,606 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
Empty Pointer in Main #238222
11/25/08 19:58
11/25/08 19:58
Joined: Oct 2008
Posts: 22
S
SamstaUK Offline OP
Newbie
SamstaUK  Offline OP
Newbie
S

Joined: Oct 2008
Posts: 22
I'm using the Biped player in my game, I am inserting the following code at around 95 in the main game script. Inside of the main game loop. When I press enter I get an "Empty Pointer in Main" Error. I have been able to find very little about this error, what can I do to improve the code so that it works?

Quote:

if (key_enter == 1)
{
ent_create("toto.mdl", vector(my.x - 50, my.y, my.z), destroy_object);
}
wait(1);


destroy_object is an action in another .wdl file.

I read it has something to do with calling the "my" function inside of another one or something, I really don't know what to do, any help will be greatly appreciated!

Re: Empty Pointer in Main [Re: SamstaUK] #238226
11/25/08 20:19
11/25/08 20:19
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
my only valid in entity actions/functions.

in main my is NULL, so it's a empty pointer.


3333333333
Re: Empty Pointer in Main [Re: Quad] #238231
11/25/08 20:34
11/25/08 20:34
Joined: Aug 2008
Posts: 153
Germany,Stuttgart
kwpsp Offline
Member
kwpsp  Offline
Member

Joined: Aug 2008
Posts: 153
Germany,Stuttgart
"my only valid in entity actions/functions.

in main my is NULL, so it's a empty pointer."

so it's AN empty pointer.
Yardim olsun diye
;-)
kwpsp


My system:
- Core 2 Quad 6600(4x 2,4GhZ)
- 2GB Ram
- GeForce 7050(:-))
- Windows seven
Re: Empty Pointer in Main [Re: kwpsp] #238236
11/25/08 21:01
11/25/08 21:01
Joined: Oct 2008
Posts: 22
S
SamstaUK Offline OP
Newbie
SamstaUK  Offline OP
Newbie
S

Joined: Oct 2008
Posts: 22
I figured it out, I had to fiddle around with some template code but it works now laugh


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