Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Questions (player objects, stealth vehs)
Re: Questions (player objects, stealth vehs) [message #413680 is a reply to message #413579] Thu, 10 December 2009 08:20 Go to previous messageGo to previous message
Hubba is currently offline  Hubba
Messages: 40
Registered: October 2009
Karma:
Recruit
Thx for the reply. I looked at vectors and made this:

This is the 2d vector which should store all the player id and the objects.
 vector<vector<int> > vector2d ( 121, vector<int> ( 0 ) );


The input code i have now:
int a = Get_Player_ID(obj);
vector2d[a].push_back (1);

This will just add a new element with value "1" to the player-ids vector.


But now my question is: how can I add an ids to the objects I create?

[Updated on: Thu, 10 December 2009 08:24]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A few skins
Next Topic: C++ code help please.
Goto Forum:
  


Current Time: Sun Dec 15 00:51:11 MST 2024

Total time taken to generate the page: 0.00879 seconds