Gamestudio Links
Zorro Links
Newest Posts
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
ZorroGPT
by TipmyPip. 10/26/26 08:09
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Akow, MaliceTheMaker), 14,199 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
empty pointers? #130940
05/21/07 14:56
05/21/07 14:56
Joined: Nov 2005
Posts: 232
Maine , United States
D
Dragon6261 Offline OP
Member
Dragon6261  Offline OP
Member
D

Joined: Nov 2005
Posts: 232
Maine , United States
What do you have to do to get rid of empty pointers when you move to another level.

Empty pointer in main;
camera.x = ball.x-700
camera.y = ball.y-120
camera.z = ball.z- 900
player.x = camera.x + 900
and so forth.
the level loads but i get all these empty pointer messages on the way.


Dragonlair Digital Creations http://dragonlairme.tripod.com/
Re: empty pointers? [Re: Dragon6261] #130941
05/21/07 15:12
05/21/07 15:12
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
you must ensure the pointers are != null. just do that in your while-loop.

Re: empty pointers? [Re: Joey] #130942
05/21/07 15:30
05/21/07 15:30
Joined: Aug 2000
Posts: 7,490
O
Orange Brat Offline

Senior Expert
Orange Brat  Offline

Senior Expert
O

Joined: Aug 2000
Posts: 7,490
What Joey said. For every pointer used in a given function, insert the following line at the beginning of the function. If there aren't any pointers used, then you don't need anything at all:

Code:

while(![pointer name]) { wait(1); }



Change the [pointer name] to the appropriate name minus the brackets (player, camera, etc}. When the pointer is no longer null, the function will execute. Another way is "while([pointer name] != null) { wait(1); }" but I think the way I posted above is "faster."

It's perfectly all right to check for more than one, too. I have functions that use more than pointer, and I check for all of them. Just do this:

Code:

while(![pointer name1] || ![pointer name2]) || ![pointer name3]) { wait(1); }




My User Contributions master list - my initial post links are down but scroll down page to find list to active links

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