Přidat otázku mezi oblíbenéZasílat nové odpovědi e-mailem Spuštění vlastní multiplayer hry po síti

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);
      }
   }
}


Reakce na odpověď

1 Zadajte svou přezdívku:
2 Napište svou odpověď:
3 Pokud chcete dostat ban, zadejte libovolný text:

Zpět do poradny