Player can`t connect if npc connected
#1

I have some npc`s on my server,recently i fixed one bug with acounts and now if i have 2 or more npc`s connected when i enter to the server doesn`t recognize my account like i don`t have, and if i have just one it`s work perfectly.
The server is mysql.
From where can be the problem?
Reply
#2

In your on player connect, or where ever you log players in, do you ignore logging in a player if its an NPC?
Reply
#3

Yes,the npc connects without problems,the problem is just when they are more then 2,i can`t connect,it`s say i don`t have an account.
Reply
#4

up!.
Reply
#5

Sorry for bump,i have this to OnPlayerConnect
pawn Код:
public OnPlayerConnect(playerid)
{
        SendClientMessage(playerid,~0,"CONNECT#1");
    PlayerTextDraws(playerid);
    RemoveBuildings(playerid);
    SendClientMessage(playerid,~0,"#2");
I have 4 sendclientmessage,if i have 1 npc connected,appears all of them but if i have 2 or more npc`s is stop at first one,at "CONNECT#1".
Reply
#6

on server.cfg is maxnpc, put the max with 1 more than your npcs, this should do
Reply
#7

Is not from there,i have 10 there and i connect just 2..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)