samedi 8 mars 2014

[Coding] IsConnected and IsInGame crash topic





Code:


IVEngineClient        *pEngine = NULL;

void __cdecl GetInterfaces(void)
{
    PCreateInterface pfEngine = GetCreateInterfaceFromModuleName("engine.dll");

    if(pfEngine != NULL) {
        pEngine = reinterpret_cast<IVEngineClient*>(GetInterfacePointer(pfEngine, "VEngineClient013"));
    }
}

// when i call this, crashes game
if(!pEngine->IsConnected() || !pEngine->IsInGame()) t0Msg("NOT CONNECTED & INGAME\n");
// and its not the t0Msg() i have that other places and it doesnt crash


i'm using the IVEngineClient class from the cs-go SDK updated on 3/6
what's wrong? :(





Aucun commentaire:

Enregistrer un commentaire