SA-MP Forums Archive
[NPC HELP] Bots Wont 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: [NPC HELP] Bots Wont Connect (/showthread.php?tid=289818)



[NPC HELP] Bots Wont Connect - DaRkAnGeL[NBK] - 13.10.2011

Hey,

I have a problem my script is all set up fine XD but for some reason the bot wont connect i load up the FS and script and i get this in server console:

Код:
incoming connection 127.0.0.1:64471
and it wont do anything else

pawn Код:
#include <a_npc>
#define RECORDING "Cop1" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 2 //1 for in vehicle and 2 for on foot.

main(){}

public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCSpawn()
{
    SetMyPos(1537.4364,-1643.1193,13.3943);
    StartRecordingPlayback(RECORDING_TYPE, RECORDING);
}
and in my main script i have:
pawn Код:
ConnectNPC("mybot","npcs");



Re: [NPC HELP] Bots Wont Connect - Backwardsman97 - 13.10.2011

Make sure in the server.cfg that you don't have the maximum npc's set to 0.


Re: [NPC HELP] Bots Wont Connect - TheLazySloth - 13.10.2011

Meybe in OnPlayerConnect(playerid) you have to if(IsPlayerNPC(playerid)) return 1; cause your login dialog maybe kicking or freezing the NPC