Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
3 registered members (NnamueN, Akow, 1 invisible), 1,421 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 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,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İ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 | 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