OnPlayerText help
#1

Ok iv been on sa-mp wiki on callbacks and was making my npc, my npc works fine now i just need
like when someone says something ex: hi james (my bot's name is james) it comes error the code is
Код:
if (strfind(text, "hi james") != -1)
    {
        new string[80], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "Hi %s", name);
        SendChat(string);
    }
its onplayertext the error:
Код:
C:\Users\james\Desktop\servimm\gamemodes\Gamemode.pwn(597) : error 017: undefined symbol "SendChat"
any clues?
_______________________
[GDZ]leader
Dont ASK! me RolePlay questions
www.mefreeroam.tk
Reply
#2

https://sampwiki.blast.hk/wiki/NPC:SendChat
Reply
#3

-.- i did
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)