Jump to content

Recommended Posts

/// Server check ip
bool Metin2Server_IsInvalid()
{
	g_isInvalidServer = false;
	if (g_szPublicIP == "192.x.x.x") {
		g_isInvalidServer = true;
		return g_isInvalidServer;
	} else {
		return g_isInvalidServer;
        //debug
        sys_log(0, "Se if the function works.");
	}
}

Try it :)

 

main.cpp under:

static bool g_isInvalidServer = false;
  • Love 2
Link to comment
Share on other sites

/// Server check ip
bool Metin2Server_IsInvalid()
{
	g_isInvalidServer = false;
	if (g_szPublicIP == "192.x.x.x") {
		g_isInvalidServer = true;
		return g_isInvalidServer;
	} else {
		return g_isInvalidServer;
        //debug
        sys_log(0, "Se if the function works.");
	}
}

Try it :)

 

main.cpp under:

static bool g_isInvalidServer = false;

doesnt work

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.