SA-MP Forums Archive
NPCs not exiting after 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPCs not exiting after server (/showthread.php?tid=98781)



NPCs not exiting after server - GTA967 - 22.09.2009

When i start a local server(windows) it loads my own gm witch has all the npc code in it. and normally when i start the all connect and the log shows what they are doing for example
Код:
[23:34:27] Incoming connection: 127.0.0.1:2989
[23:34:27] [npc:join] TrainDriverLV has joined the server (0:127.0.0.1)
[23:34:27] TrainDriverLV joined the server From Private IP
[23:34:27] ( 0 ) TrainDriverLV joined the server ( 127.0.0.1 )
[23:34:27] Incoming connection: 127.0.0.1:2991
[23:34:27] [npc:join] TrainDriverLS has joined the server (1:127.0.0.1)
[23:34:27] TrainDriverLS joined the server From Private IP
[23:34:27] ( 1 ) TrainDriverLS joined the server ( 127.0.0.1 )
[23:34:27] Incoming connection: 127.0.0.1:2990
[23:34:27] [npc:join] TrainDriverSF has joined the server (2:127.0.0.1)
[23:34:27] TrainDriverSF joined the server From Private IP
[23:34:27] ( 2 ) TrainDriverSF joined the server ( 127.0.0.1 )
[23:34:27] Incoming connection: 127.0.0.1:2993
[23:34:27] [npc:join] PilotSF has joined the server (3:127.0.0.1)
[23:34:27] PilotSF joined the server From Private IP
[23:34:27] ( 3 ) PilotSF joined the server ( 127.0.0.1 )
[23:34:27] Incoming connection: 127.0.0.1:2992
[23:34:27] [npc:join] PilotLV has joined the server (4:127.0.0.1)
[23:34:27] PilotLV joined the server From Private IP
[23:34:27] ( 4 ) PilotLV joined the server ( 127.0.0.1 )
[23:34:27] Incoming connection: 127.0.0.1:2994
[23:34:27] [npc:join] PilotLS has joined the server (5:127.0.0.1)
[23:34:27] PilotLS joined the server From Private IP
[23:34:27] ( 5 ) PilotLS joined the server ( 127.0.0.1 )
[23:34:27] Bot TrainDriverLV Has Requested Class
[23:34:27] Bot TrainDriverLS Has Requested Class
[23:34:27] Bot TrainDriverSF Has Requested Class
[23:34:27] Bot PilotSF Has Requested Class
[23:34:27] Bot PilotLV Has Requested Class
[23:34:27] Bot PilotLS Has Requested Class
[23:34:27] Bot TrainDriverSF Has Requested Spawn
[23:34:27] Bot PilotSF Has Requested Spawn
[23:34:27] Bot TrainDriverLV Has Requested Spawn
[23:34:27] Bot TrainDriverLS Has Requested Spawn
[23:34:27] Bot PilotLV Has Requested Spawn
[23:34:27] Bot PilotLS Has Requested Spawn
[23:34:27] Bot TrainDriverLV Has Spawned
[23:34:27] Bot TrainDriverLS Has Spawned
[23:34:27] Bot TrainDriverSF Has Spawned
[23:34:28] Bot PilotSF Has Spawned
[23:34:28] Bot PilotLV Has Spawned
[23:34:28] Bot PilotLS Has Spawned
but now(after RC 6-2) they don't connect to the server at all. and when the server exits none of the samp-npc.exe instances close they just keep running and then when i try and use taskmanager to force exit them windows becomes unresponsive. what do you guys think ?


Re: NPCs not exiting after server - [mad]MLK - 23.09.2009

yep can confirm this:




Re: NPCs not exiting after server - V1ceC1ty - 23.09.2009

i dont think you need to start samp-npc at all, i dont have this problem. sounds like your pc is the problem not closing it.


Re: NPCs not exiting after server - Calgon - 23.09.2009

Quote:
Originally Posted by V1ceC1ty
i dont think you need to start samp-npc at all, i dont have this problem. sounds like your pc is the problem not closing it.
What's the point of having an exe if it's not being executed. executable. It just hasn't got a GUI and the system runs it as a process to run NPCs.


Re: NPCs not exiting after server - V1ceC1ty - 23.09.2009

well i dont run it and all my npcs work.


Re: NPCs not exiting after server - FUNExtreme - 23.09.2009

Quote:
Originally Posted by V1ceC1ty
well i dont run it and all my npcs work.
It auto runs on when you run the server exe


Re: NPCs not exiting after server - [mad]MLK - 23.09.2009

Quote:
Originally Posted by FUNExtreme
Quote:
Originally Posted by V1ceC1ty
well i dont run it and all my npcs work.
It auto runs on when you run the server exe
I always never run it, it automatically starts i never run the npc exe


Re: NPCs not exiting after server - GTA967 - 23.09.2009

the samp-npc.exe is run when ever your scripts have a bot connect to your server, and it will run the executable with as many instances and there are npcs


Re: NPCs not exiting after server - Calgon - 25.09.2009

Quote:
Originally Posted by V1ceC1ty
well i dont run it and all my npcs work.
Common sense, read my post. It AUTOSTARTS itself.