SA-MP Forums Archive
[Ajuda] NPC entra e sai - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] NPC entra e sai (/showthread.php?tid=649219)



NPC entra e sai - minimessi10 - 04.02.2018

gravei um npc e fiz o script, mas, toda vez ele entra e depois de uns 11 segundos ele sai sai do servidor.
pawn Код:
[20:08:18] Number of vehicle models: 0
[20:08:18] [SERVER] 108 empresas foram carregadas.
[20:08:18] [connection] 127.0.0.1:54591 requests connection cookie.
[20:08:19] [connection] incoming connection: 127.0.0.1:54591 id: 0
[20:08:19] [npc:join] BOT has joined the server (0:127.0.0.1)
[20:08:30] [Erro] Array vazia, impossнvel deletar o elemento: 0
[20:08:30] [npc:part] BOT has left the server (0:0)
coloquei
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
na callback OnPlayerConnect, OnPlayerRequestClass e OnPlayerSpawn e nгo adianta.


Re: NPC entra e sai - GuiKommander - 04.02.2018

Abra o server.cfg e coloque maxnpc coloque o quantos quiser, exemplo maxnpc 20


Re: NPC entra e sai - minimessi10 - 04.02.2018

Jб encontrei o erro, obrigado de qualquer forma <3


Re: NPC entra e sai - Mackanor - 06.02.2018

qual foi o erro tbm estou c o msm


Re: NPC entra e sai - PT - 06.02.2018

Quote:
Originally Posted by Mackanor
Посмотреть сообщение
qual foi o erro tbm estou c o msm
https://sampwiki.blast.hk/wiki/NPC:OnNPCConnect
https://sampwiki.blast.hk/wiki/NPC:OnNPCDisconnect
https://sampwiki.blast.hk/wiki/NPC:OnNPCSpawn