Player can`t connect if npc connected - 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: Player can`t connect if npc connected (
/showthread.php?tid=372920)
Player can`t connect if npc connected -
TzAkS. - 28.08.2012
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?
Re: Player can`t connect if npc connected -
Grimrandomer - 28.08.2012
In your on player connect, or where ever you log players in, do you ignore logging in a player if its an NPC?
Re: Player can`t connect if npc connected -
TzAkS. - 28.08.2012
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.
Re: Player can`t connect if npc connected -
TzAkS. - 01.09.2012
up!.
Re: Player can`t connect if npc connected -
TzAkS. - 01.09.2012
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".
Re: Player can`t connect if npc connected -
[FR]Fratzica - 01.09.2012
on server.cfg is maxnpc, put the max with 1 more than your npcs, this should do
Re: Player can`t connect if npc connected -
TzAkS. - 01.09.2012
Is not from there,i have 10 there and i connect just 2..