HostNetGame.htm 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>HostNetGame (gamename$)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. gamename$ = string value designating the game's name
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. This allows you to bypass the 'standard' networked game dialog box (normally using StartNetGame) and start a hosted game directly. A value of 2 is returned if the hosted game has started successfully.
  21. </td>
  22. </tr>
  23. </table>
  24. <h1><a href=../2d_examples/HostNetGame.bb>Example</a></h1>
  25. <table>
  26. <tr>
  27. <td>
  28. ; HostNetGame example <br />
  29. <br />
  30. joinResults=HostNetGame("ShaneGame") <br />
  31. <br />
  32. Select joinResults <br />
  33. Case 2 <br />
  34. Print "Successfully started host game!" <br />
  35. Default <br />
  36. Print "Game was unable to start!" <br />
  37. End Select <br />
  38. waitkey() <br />
  39. </td>
  40. </tr>
  41. </table>
  42. <br>
  43. <a target=_top href=../index.htm>Index</a><br>
  44. <br>
  45. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=HostNetGame&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  46. </html>