Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / displaying vector contents

Author
Message
Patrick987
15
Years of Service
User Offline
Joined: 22nd Jun 2009
Location:
Posted: 1st Jun 2010 01:20
i have no clue how to display the contents of a vector for an inventory using DarkGDK. any help would be appreciated
JTK
14
Years of Service
User Offline
Joined: 10th Feb 2010
Location:
Posted: 1st Jun 2010 01:52
What, exactly, do you mean by "vector"? A D3DVECTOR, an std::vector<>, some user-defined vector type? You need to be more specific...

JTK
Patrick987
15
Years of Service
User Offline
Joined: 22nd Jun 2009
Location:
Posted: 1st Jun 2010 08:40 Edited at: 1st Jun 2010 08:41
an std::vector<> i've done several searches on the forums and google and cant find any way to display them using the GDK
JTK
14
Years of Service
User Offline
Joined: 10th Feb 2010
Location:
Posted: 1st Jun 2010 10:26
Well, I don't know what your std::vector<> is holding but here's how you can cycle through each element that it does have:



I hope this helps,

JTK
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: &lt;script&gt; alert(1); &lt;/script&gt;
Posted: 1st Jun 2010 15:05
This way is pretty much confusing, i usually use this way as it looks better and cleaner


Patrick987
15
Years of Service
User Offline
Joined: 22nd Jun 2009
Location:
Posted: 1st Jun 2010 19:57
thank you JTK that works perfectly

Login to post a reply

Server time is: 2024-11-19 23:29:29
Your offset time is: 2024-11-19 23:29:29