i use this function to find offsets on ep1 , when i ported the plugin to css beta , the function now crashes the server :
PHP Code:
int FindOffset(const char *ClassName, const char *PropertyName)
{
ServerClass *sc = server->GetAllServerClasses();
while (sc)
{
if (FStrEq(sc->GetName(), ClassName))
{
int NumProps = sc->m_pTable->GetNumProps();
for (int i=0; i<NumProps; i++)
{
if (FStrEq(sc->m_pTable->GetProp(i)->GetName(), PropertyName))
{
return sc->m_pTable->GetProp(i)->GetOffset();
}
}
return 0;
}
sc = sc->m_pNext;
}
return 0;
}
and i found out the this call is the one crashing :
PHP Code:
(FStrEq(sc->m_pTable->GetProp(i)->GetName(), PropertyName)
how shall i modify the function to work with Orange Box ?
__________________