[NPC HELP] Bots Wont Connect
#1

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");
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)