Jump to content

Recommended Posts

Hey.
 

I have a problem with my code.

How can i make a messagebox to add "start only about the patcher"

if (strstr(lpCmdLine, "--open-client") == 0)
    MessageBox(NULL, "Run the Patcher", "Metin2", MB_ICONSTOP);
      return 0;

thats my code at the moment

when i click on the binary the message comes but when i start the client about the argument nothing happend

Link to comment
https://metin2.dev/topic/10316-start-client-with-argument/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Because there is more then 1 line in your "if-block" you need to add brackets before and after:

if (strstr(lpCmdLine, "--open-client") == 0){
    MessageBox(NULL, "Run the Patcher", "Metin2", MB_ICONSTOP);
      return 0;

}

Link to comment
https://metin2.dev/topic/10316-start-client-with-argument/#findComment-61061
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.