Omlouvám se, ještě k tomu patří toto
bool NetworkActive = false;
void Main()
{
if (iInitializing())
{
//Activate the client network system.
if (iNetClientStart("","Client",123456789,100000,"Connect",-1,0))
{
NetworkActive = true;
}
}
if (iDeinitializing())
{
//De-activate the client network system.
iNetStop();
NetworkActive = false;
}
if (NetworkActive)
{
//Receive the string from the server and
//put it into a string variable called 'text'.
string text;
if (iNetStringReceive(text) > 0)
{
//Set the string as text for the TextPrint object
//in this project, to display it on this PC
iObjectTextSet(OBJ_0,text);
}
}
}