Skip to content

Conversation

@Rostu13
Copy link
Contributor

@Rostu13 Rostu13 commented Sep 1, 2020

Server will be crash with next code on windows
2020-09-01_19-12-23

@asherkin answered this
https://canary.discordapp.com/channels/335290997317697536/335290997317697536/746316421134548993

#include <sdktools>

public void OnPluginStart()
{
    StartPrepSDKCall(SDKCall_Static);
    PrepSDKCall_SetSignature(SDKLibrary_Engine, "@CreateInterface", 0);
    PrepSDKCall_AddParameter(SDKType_String, SDKPass_Pointer);
    PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Pointer, VDECODE_FLAG_ALLOWNULL);
    PrepSDKCall_SetReturnInfo(SDKType_PlainOldData, SDKPass_Plain);

    Handle h= EndPrepSDKCall();

    int IVModelRender = SDKCall(h, "VEngineModel016", 0);

    PrintToServer("IVModelRender 0x%X", IVModelRender);

    delete h;
}

This PR fixed it
2020-09-01_19-10-03

@KyleSanderson KyleSanderson merged commit c38b392 into alliedmodders:master Oct 3, 2020
@Rostu13 Rostu13 deleted the sig_fix branch October 8, 2020 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants