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 crashwhat's wrong? :(
Aucun commentaire:
Enregistrer un commentaire