A command line is a string that is passed to the application at it's start. This way you can tell the application how to start before the application is loaded.
You could make an option that could be "-ANetServer" and if that option is set, you start the application in video_screen = 0; mode and initialize the server.

Example code:
Code:
function main()
{
   if (str_stri(command_str,"-ANetServer"))
   {
      video_screen = 0;
      StartServer();
   }
   else
   {
      StartClient();
   }
}



Now how can you pass the command line option to your application?

There are 2 ways:

1) During development through SED:
Go in SED under Options->Preferences. There is an text box where you can add "-ANetServer"

2) After publishing:
Create a batch file (.bat) with the text editor and insert the following line:
YourAppName.exe -ANetServer
(please correct me if I'm wrong, I'm not totally sure about the syntax!)
Save the .bat file in the same folder as the .exe. And double click on the .bat to start the application.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version