SA-MP Forums Archive
OnPlayerText help - 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: OnPlayerText help (/showthread.php?tid=171961)



OnPlayerText help - FireCat - 28.08.2010

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



Re: OnPlayerText help - zSuYaNw - 28.08.2010

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


Re: OnPlayerText help - FireCat - 28.08.2010

-.- i did