Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (fairtrader, AndrewAMD, 3run), 576 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Kurze Pointer Frage #159141
10/06/07 17:33
10/06/07 17:33
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
Hi,

ich habe in einer function einen you-pointer. Das ist der getroffene Gegner.
Danach kommt aber nochmal eine c_Trace anweisung. Dadurch wird ja ein neuer you-pointer gesetzt. Wie könnte ich den alten you-pointer speichern, so das ich ihm nach dem 2. c_trace tortzdem noch leben abziehen kann??? Oder geht das garnicht???

I've in a function a you-pointer. The you is the hit enemy. After that comes a second trace, so there is a new you-pointer. How can I use the first you-pointer, the hit enemy, after the second trace???

Mfg, Pingulord


3D Gamestudio A7 Extra
Re: Kurze Pointer Frage [Re: Martek] #159142
10/06/07 18:20
10/06/07 18:20
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
var ent_handle;


ent_handle = handle(you);// save it
you = ptr_for_handle(ent_handle);//load it


"empty"
Re: Kurze Pointer Frage [Re: flits] #159143
10/06/07 18:56
10/06/07 18:56
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
Du musst nichtmals mit handle arbeiten es reicht im Grunde schon:

temp=you;
c_trace(blub);
you=temp;

Re: Kurze Pointer Frage [Re: Scorpion] #159144
10/06/07 20:26
10/06/07 20:26
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
Achso danke:)

Mfg, Pingulord


3D Gamestudio A7 Extra

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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