ReadString

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search


Description:
This will read a string from the blob of onServerData.


Parameters:

( data )

data : The blob obtained from onServerData


Return Values:
The function returns the string on success. On failure throw error.


Example

function OnServerData( data )
{
    local a = ReadString(data);
    print("I received string " + a + " from server\n");
}

Related Functions

The following functions may be helpful as they relate to this function in one way or another.