Npc's Talking..
#1

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

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

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

is there a version of pawno im missing?
Reply
#5

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

oh iight..
Reply
#7

yep workin sexeh nao
Reply
#8

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


Forum Jump:


Users browsing this thread: 2 Guest(s)