SA-MP Forums Archive
Problem with NPCS. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Problem with NPCS. (/showthread.php?tid=275353)



Problem with NPCS. - MrDarth - 09.08.2011

Hello,
I'm newbie in sa-mp and pawn. I added few npcs, which trying to connect to server, but with no success.
I see message: Incoming connection 127.0.0.1: ... bla bla.

So, my problem is that my npc doesn't spawn at all.

I have added
Код:
if(IsPlayerNPC(playerid)) return 1;
in
Код:
OnPlayerConnect
,
Код:
OnPlayerDisconnect
,
Код:
OnPlayerSpawn
. I also removed server password.

EDIT: Damn me. I forgot to increase maxnpc count to >0. Solved!