04.05.2013, 06:08
If you have more than 1 NPC connecting simultaneously it won't work!!.
Set a timer for about 1 second each and connect an NPC.
SetTimer("ConnectNPC1",1000,0);
The next NPC must be
SetTimer("ConnectNPC1",2000,0);
Then the next
SetTimer("ConnectNPC1",3000,0);
You can't keep ConnectNPCs one after other.
This code works because there is a gap between incoming connections.Server cannot connect all the players at once.
There is nothing sort of IP giving to the NPC while connecting.And its "server_log.txt" and it gives the same information what the console gives nothing extra.
Set a timer for about 1 second each and connect an NPC.
SetTimer("ConnectNPC1",1000,0);
The next NPC must be
SetTimer("ConnectNPC1",2000,0);
Then the next
SetTimer("ConnectNPC1",3000,0);
You can't keep ConnectNPCs one after other.
This code works because there is a gap between incoming connections.Server cannot connect all the players at once.
There is nothing sort of IP giving to the NPC while connecting.And its "server_log.txt" and it gives the same information what the console gives nothing extra.