SA-MP Forums Archive
NPC Connection Problem - 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: NPC Connection Problem (/showthread.php?tid=107466)



NPC Connection Problem - fir4t - 09.11.2009

Solved: Thanks @ Gergo1352


Re: NPC Connection Problem - miokie - 09.11.2009

Search, things simular to this have been answered before.


Re: NPC Connection Problem - fir4t - 09.11.2009

Solved, but not answered.
Since about an hour i'm looking for it.


Re: NPC Connection Problem - Gergo1352 - 09.11.2009

The disconnect reason is 2, so the NPC was kicked. The problem is probably a function which checks the player's name and if it doesn't contain a _ symbol the server kicks the player.

You should use:

Код:
if(IsPlayerNPC(playerid)) return 1;
at OnPlayerConnect.


Re: NPC Connection Problem - fir4t - 09.11.2009

Think badname error.
Thanks I will try
_________________________________________________
Yep, problem is badname error.
Solved, thanks again.