Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » gameobject list
gameobject list [message #464925] Mon, 26 March 2012 05:04 Go to previous message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma:
Recruit
int KB_Find_Amount_Scripts_Per_Team(const char *script,int Team)
{
	int Amount = 0;
	SLNode<GameObject> *x = GameObjManager::GameObjList.Head();
	while (x)
	{
		GameObject *o = x->Data();
		int team = Get_Team(Get_Player_ID(o));
		if (Team == team)
		{
			if(Is_Script_Attached(o,script))
			{
				Amount = Amount + 1;
			}
		}
		x = x->Next();
	}
	return Amount;
};


Error 1 error C2440: 'initializing' : cannot convert from 'SLNode<T> *' to 'SLNode<T> *' C:\Users\roby\Desktop\source test\Kambot\KB_Functions.cpp 90

2 IntelliSense: a value of type "SLNode<BaseGameObj> *" cannot be used to initialize an entity of type "SLNode<GameObject> *" c:\users\roby\desktop\source test\kambot\kb_functions.cpp 90


i know there are other lists but the objects i search arent in there since i made them with scripts


Owner of kambot TT server

kambot.freeforums.org

[Updated on: Mon, 26 March 2012 05:08]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Waterfalls
Next Topic: 3dsmax8 Flying Buildings
Goto Forum:
  


Current Time: Thu Nov 28 00:23:29 MST 2024

Total time taken to generate the page: 0.01265 seconds