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
[Updated on: Mon, 26 March 2012 05:08]
Report message to a moderator