[Ajuda] NPC entra e sai
#1

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.
Reply
#2

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

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

qual foi o erro tbm estou c o msm
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)