SA-MP Forums Archive
Npc's Talking.. - 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's Talking.. (/showthread.php?tid=114786)



Npc's Talking.. - DiddyBop - 20.12.2009

I get this error when i try to make an NPC SendChat

Код:
C:\Users\Marc\Desktop\All Server Files\Samp Server(s)\Test\filterscripts\allnpcs.pwn(55) : error 017: undefined symbol "SendChat"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
At that line region..

pawn Код:
public OnNPCSpawn()
{
  print("NPC spawned");
  SendChat("Hello World. I'm a bot.");
  return 1;
}
This is from wiki.. link

https://sampwiki.blast.hk/wiki/NPC:OnNPCSpawn


Re: Npc's Talking.. - Adamus - 20.12.2009

Add this at the beginning of gamemode.
Код:
#include <a_npc>



Re: Npc's Talking.. - DiddyBop - 20.12.2009

its there.. i even see SendChat funtion in the list on right side for a_npc...


Re: Npc's Talking.. - DiddyBop - 20.12.2009

is there a version of pawno im missing?


Re: Npc's Talking.. - Filka - 20.12.2009

SendChat(); is for NPC scripts ( npcmodes ), not for filterscripts


Re: Npc's Talking.. - DiddyBop - 21.12.2009

oh iight..


Re: Npc's Talking.. - DiddyBop - 21.12.2009

yep workin sexeh nao


Re: Npc's Talking.. - V1ceC1ty - 21.12.2009

And for future reference you cant have a_samp and a_npc in the same script.