Gamestudio Links
Zorro Links
Newest Posts
long time to load data
by qin. 12/31/25 09:57
The new evaluation shell
by jcl. 12/29/25 09:56
about Zorro S (monthly)
by AndrewAMD. 12/29/25 03:24
Xor Memory Problem.
by TipmyPip. 12/26/25 19:14
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 4,390 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Syndrela, HDRSEO, AOUNZA, digitalboy381, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: array in skill, is it possible? [Re: Saturnus] #338820
08/21/10 20:16
08/21/10 20:16
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
In thew first case I have to write
my.fall_speed = 56;
instead of
fall_speed(my) = 56;
- right?

Re: array in skill, is it possible? [Re: Pappenheimer] #338827
08/21/10 21:41
08/21/10 21:41
Joined: Dec 2008
Posts: 271
Saturnus Offline
Member
Saturnus  Offline
Member

Joined: Dec 2008
Posts: 271
No, in the first case (#define fall_speed ((var*)my.skill2)[2]) you'd have to write it like that :
fall_speed = 56; (without my)
as fall_speed gets replaced with ((var*)my.skill2)[2]. So this macro doesn't work with other entity pointers than my.

That's why I suggested the other method, where you can pass the entity pointer.

Re: array in skill, is it possible? [Re: Saturnus] #338831
08/21/10 22:14
08/21/10 22:14
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Ah, okay. Great. Thank you! laugh

Page 3 of 3 1 2 3

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

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