ReadInt

From NPC for VCMP 0.4 Servers
Revision as of 17:45, 24 June 2023 by Habi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
This will read an integer(4 bytes) from the given blob obtained from onServerData.


Parameters:

( data )

data : The blob obtained from onServerData


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


Example

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

Related Functions

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