SA-MP Forums Archive
All NPC can't connect - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: All NPC can't connect (/showthread.php?tid=434748)



All NPC can't connect - Broker - 04.05.2013

hello guyz, why npc in my server can't connect to server ?

just this :
Код:
[npc:join] Zombie has joined the server (499:255.255.255.255)
and then, nothing happen..


Re: All NPC can't connect - Bhxblu - 04.05.2013

Make Sure they are connect to the right IP you set them inside the script and Check the server.txt File to make sure they are loading up


Re: All NPC can't connect - Yashas - 04.05.2013

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.

Quote:
Originally Posted by Bhxblu
Посмотреть сообщение
Make Sure they are connect to the right IP you set them inside the script and Check the server.txt File to make sure they are loading up
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.