problem with the NPC SendChat - 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)
+--- Thread: problem with the NPC SendChat (
/showthread.php?tid=282338)
problem with the NPC SendChat -
Zonoya - 10.09.2011
hi guys i made a few NPCS and the SendChat command for NPCS it says error 017: undefined symbol "SendChat"
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
new string[80], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Oh no %s! I didn't want you to die that way!", name);
SendChat(string);
return 1;
}
Error
pawn Code:
error 017: undefined symbol "SendChat"
Re: problem with the NPC SendChat - Max_Coldheart - 10.09.2011
EDIT: It can only be used inside NPC scripts, not in gamemodes.