Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 4 - NetSprocket / NetSprocket Reference
NetSprocket Functions / Managing Groups of Players


NSpGroup_AddPlayer

You can use the NSpGroup_AddPlayer function to add a player to a group.

OSStatus NSpGroup_AddPlayer (
	NSpGameReference inGame,
	NSpGroupID inGroupID,
	NSpPlayerID inPlayerID);
inGame
An opaque reference to your game object.
inGroupID
The group to which you are adding the player.
inPlayerID
The player to be added.
function result
A result code of noErr, or a NetSprocket or Open Transport result code.
DESCRIPTION
NetSprocket returns an error if it could not add the player to the group or the group ID is invalid.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996