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
https://metin2.dev/topic/2755-check-ip-server/#findComment-18455
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
https://metin2.dev/topic/2755-check-ip-server/#findComment-18494
Share on other sites

You changed this line?

if (g_szPublicIP == "192.x.x.x") {
Sorry for dumb question but sometimes human makes stupid mistakes :D

@Edit

Moreover, you called somewhere this function?

 

Of course I changed there ip and the auth is close after trying to login.

Link to comment
https://metin2.dev/topic/2755-check-ip-server/#findComment-18539
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

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.