Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TedMar, dr_panther), 1,049 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: how to use other .c files [Re: Uhrwerk] #432941
11/19/13 20:36
11/19/13 20:36
Joined: Dec 2010
Posts: 100
D
Dega Offline OP
Member
Dega  Offline OP
Member
D

Joined: Dec 2010
Posts: 100
Basically when I use it, I get a error at runtime. It appears I am referencing something that doesn't exist. I think I am figuring it out though. I will let you know if I do.


boolean my.awesomeness = so true;
Re: how to use other .c files [Re: Dega] #432949
11/20/13 03:11
11/20/13 03:11

M
Malice
Unregistered
Malice
Unregistered
M



Lol in your player action did you set player?

Code:
action player_act()
{
player = me;
.....
}



if so then there should be no problem.

Last edited by Malice; 11/20/13 03:11.
Re: how to use other .c files [Re: ] #433024
11/21/13 12:46
11/21/13 12:46
Joined: Apr 2012
Posts: 62
wrekWIRED Offline
Junior Member
wrekWIRED  Offline
Junior Member

Joined: Apr 2012
Posts: 62
80% of the time when having different files for my codes I tend to miss the proper pointer which cause the error. There are also times where in pointer player isn't recognize right away after pointing your entity as the player and calling a function that use player pointer. It would help to wait until player pointer exist before executing your code like.

Code:
void goto_encounter()
{
   while(!player){wait(1);}
   player.x = 0;
   player.y = 0;
   player.z = -300;
}


Last edited by wrekWIRED; 11/21/13 12:47.
Page 2 of 2 1 2

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