Convert C++ To C# #2
#define FHost 0x824075
void Host(int MyIndex, int HostIndex, int ServerLoad)
{
typedef void (__cdecl *SendToServer)(int Index, int host, int load);
SendToServer _ForceHost = (SendToServer)(FHost);
if(InGame)
_ForceHost(MyIndex, HostIndex, ServerLoad);
}
Again, I dont actually know c++ but can someone help me convert this c++ code to c#, You can just explain it and I can do the coding part. But if you really want to help me convert it you can go ahead and post the full code if you like.
void Host(int MyIndex, int HostIndex, int ServerLoad)
{
typedef void (__cdecl *SendToServer)(int Index, int host, int load);
SendToServer _ForceHost = (SendToServer)(FHost);
if(InGame)
_ForceHost(MyIndex, HostIndex, ServerLoad);
}
Again, I dont actually know c++ but can someone help me convert this c++ code to c#, You can just explain it and I can do the coding part. But if you really want to help me convert it you can go ahead and post the full code if you like.

