SA-MP Forums Archive
NPC can't connect to the server - 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: NPC can't connect to the server (/showthread.php?tid=389753)



NPC can't connect to the server - pasha97 - 03.11.2012

I have a problem: every npc i try to connect with ConnectNPC cannot connect to the server, the server writes: "Incoming connection: 127.0.0.1:58419". What can be the reason for that?


Re: NPC can't connect to the server - pasha97 - 03.11.2012

anyone help me please!


Re: NPC can't connect to the server - nmader - 03.11.2012

Incoming Connection means that it is connecting.


Re: NPC can't connect to the server - niels44 - 03.11.2012

^^ ofc, i think he knows that.

the problem will be in your server.cfg, there is a line called maxnpc, if its at 0, change it to the amount of bots you want.

WRONG!:
Код:
maxnpc 0
good one:
Код:
maxnpc 5
the line above is the right one, this will allow you to connect 5 bots to your server.


Re: NPC can't connect to the server - Private200 - 03.11.2012

INcoming connection means that there is comming connection to the server . but you should see your server.cfg line with
Код:
maxnpc 0
change it to something else like
Код:
 maxnpc 2
as
Quote:
Originally Posted by niels44
^^ ofc, i think he knows that.

the problem will be in your server.cfg, there is a line called maxnpc, if its at 0, change it to the amount of bots you want.

WRONG!:
Code:

maxnpc 0

good one:
Code:

maxnpc 5

the line above is the right one, this will allow you to connect 5 bots to your server.
said


Re: NPC can't connect to the server - pasha97 - 03.11.2012

Quote:
Originally Posted by niels44
Посмотреть сообщение
^^ ofc, i think he knows that.

the problem will be in your server.cfg, there is a line called maxnpc, if its at 0, change it to the amount of bots you want.

WRONG!:
Код:
maxnpc 0
good one:
Код:
maxnpc 5
the line above is the right one, this will allow you to connect 5 bots to your server.
Quote:
Originally Posted by Private200
Посмотреть сообщение
INcoming connection means that there is comming connection to the server . but you should see your server.cfg line with
Код:
maxnpc 0
change it to something else like
Код:
 maxnpc 2
as said
I have maxnpc 10 there and it doesnt work! Maybe something wrong with the code? ConnectNPC("Shamal_Driver","shamal");


Re: NPC can't connect to the server - pasha97 - 04.11.2012

Dudes,help me!!!!


Re: NPC can't connect to the server - JaKe Elite - 04.11.2012



Anyway how many NPC do you have??

Do you make sure that you return 1 If player is npc in any public callback that blocks NPC from connecting.


Re: NPC can't connect to the server - pasha97 - 04.11.2012

Quote:
Originally Posted by Romel
Посмотреть сообщение


Anyway how many NPC do you have??

Do you make sure that you return 1 If player is npc in any public callback that blocks NPC from connecting.
I have 1 npc and i don't have any public callbacks tat block npc connection


Re: NPC can't connect to the server - Drake_Lopez - 04.11.2012

go to your server.cfg and add 1 at the NPC thingy then?