Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (AndrewAMD, Quad, Grant), 8,062 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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 Online
Senior Expert
Quad  Online
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