problem with the NPC SendChat
#1

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

EDIT: It can only be used inside NPC scripts, not in gamemodes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)