WriteString: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome|desc=This will write a string to the given blob which can be later passed to SendServerData.|params=<source lang="lua">( b, str )</source><poem> ::b : The blob in which to write the integer. ::str: The string to be written </poem>| example=<source lang="lua"> local b=blob(); WriteString(b, "BodyPart-Head" ); SendServerData(b);</source>| retvals=The function returns true on success.| relfuncs=*WriteByte *WriteFloat *WriteInt *SendServerData}}")
 
No edit summary
 
Line 1: Line 1:
{{Welcome|desc=This will write a string to the given blob which can be later passed to [[SendServerData]].|params=<source lang="lua">( b, str )</source><poem>
{{Welcome|desc=This will write a string to the given blob which can be later passed to [[SendServerData]].|params=<source lang="lua">( b, str )</source><poem>
::b : The blob in which to write the integer.
::b : The blob in which to write the integer.
::str: The string to be written
::str : The string to be written
</poem>|
</poem>|
example=<source lang="lua">
example=<source lang="lua">

Latest revision as of 17:35, 24 June 2023


Description:
This will write a string to the given blob which can be later passed to SendServerData.


Parameters:

( b, str )

b : The blob in which to write the integer.
str : The string to be written


Return Values:
The function returns true on success.


Example

local b=blob();
WriteString(b, "BodyPart-Head" );
SendServerData(b);

Related Functions

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