Added _release/help

This commit is contained in:
blitz-research
2014-02-26 16:08:39 +13:00
parent 7eb5929eb4
commit 4e8d25d630
790 changed files with 33580 additions and 0 deletions
@@ -0,0 +1,34 @@
<html><head><title>Command: DeleteNetPlayer </title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><link rel='stylesheet' href='../css/commands.css' type='text/css'></head><body><span class='Command'>&nbsp;&nbsp;DeleteNetPlayer playerID&nbsp;&nbsp;</span></p><span class='header'>Definition:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Deletes a local player from the network game.</td></tr></table><span class='header'><br>Parameter Description:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>playerID = value assigned when player was created with CreateNetPlayer</td></tr></table><p class='header'>Command Description: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Using the playerID generated by the <a href='CreateNetPlayer.htm'>CreateNetPlayer</a> command, this command will remove the designated player from the network game.<br>
<br>
This also causes a special message to be sent to all remote machines (see <a href='NetMsgType.htm'>NetMsgType</a>). </td></tr></table><p class='header'>Example: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>; DeleteNetPlayer example<br>
<br>
newGame = StartNetGame()<br>
; Check the status of the new game.
If newGame = 0 Then<br>
Print "Could not start or join net game."<br>
End<br>
<br>
ElseIf newGame = 1<br>
Print "Successfully joined the network game"<br>
ElseIf newGame = 2<br>
Print "A new network game was started!"<br>
EndIf<br>
<br>
; Create a random player name<br>
name$="Player" + Rand(100)<br>
<br>
; Get a unique player id number for the player<br>
; and create the player<br>
playerID=CreateNetPlayer(name$)<br>
<br>
If playerID = 0 Then <br>
Print "Player could not be created!"<br>
Else<br>
Print "Player " + name$ + " was created and given ID#" + playerID<br>
WaitKey()<br>
; delete the player!<br>
DeleteNetPlayer playerID<br>
Print "The local player was deleted!"<br>
End If<br>
waitkey()<br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
</html>