Raised This Month: $12 Target: $400
 3% 

[RESOLVED] Finding Offsets


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
neo_gis
Member
Join Date: Sep 2009
Location: Rabat
Old 06-06-2010 , 19:48   [RESOLVED] Finding Offsets
Reply With Quote #1

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=0i<NumPropsi++)
            {
                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 ?
__________________

Last edited by neo_gis; 06-09-2010 at 08:07.
neo_gis is offline
Send a message via MSN to neo_gis Send a message via Skype™ to neo_gis
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode