Files
BlitzNext/_release/help/commands/2d_commands/JoinNetGame.htm
T

57 lines
1.4 KiB
HTML
Raw Normal View History

2014-12-08 12:43:20 +13:00
<html>
<head>
<title>Blitz3D Docs</title>
<link rel=stylesheet href=../css/commands.css type=text/css>
</head>
<body>
<h1>JoinNetGame (gamename$,serverIP$)</h1>
<h1>Parameters</h1>
<table>
<tr>
<td>
gamename$ = valid string containing game name to join
<br />
serverIP$ = IP address of computer hosting game
</td>
</tr>
</table>
<h1>Description</h1>
<table>
<tr>
<td>
Use this command to join a network game, bypassing the dialog box normally endured with the StartNetGame command.
<br />
This returns 0 if the command failed, or 1 if the game was joined successfully.
</td>
</tr>
</table>
<h1><a href=../2d_examples/JoinNetGame.bb>Example</a></h1>
<table>
<tr>
<td>
; JoinNetGame example
<br />
; Note; run the HostNetGame example code on the other computer
<br />
; you wish to join with
<br />
<br />
gamename$="ShaneGame"
<br />
; Change this to match the other computer's IP!
<br />
serverIP$="0.0.0.0"
<br />
<br />
; Make the join attempt
<br />
joinResults=JoinNetGame(gamename$,serverIP$)
2014-02-26 16:08:39 +13:00
<br />
2014-12-08 12:43:20 +13:00
2014-02-26 16:08:39 +13:00
<br />
2014-12-08 12:43:20 +13:00
Select joinResults
2014-02-26 16:08:39 +13:00
<br />