# GetNetworkMessageString

## Description

Gets a single string from the message and advances the message pointer to the next message item. This can only be called on messages received from network devices, calling it on messages created locally will result in undefined behaviour. Messages should be created and read according to known formats, e.g. string, int, string as there is no immedaite way for the receiver to know the format of a message. You could use an initial integer to specify a message type ID which you can use to identify the message format.

## Definition

string GetNetworkMessageString( iMsgID )

char* agk::GetNetworkMessageString( UINT iMsgID )

## Parameters

- iMsgID - The ID of the message to read.