chat 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: chat help (
/showthread.php?tid=193251)
chat help -
farris - 25.11.2010
ok so im building an npc that respond to specific messages for instance:
if (strfind(text, "hello") != -1)
{
SetTimerEx("greeting", 1000, false, "d", playerid);
}
though the problem is if the message includes the word hello it turns on the timer i need it to be only for the specific message hello so if i type something like "hello so and so" you wont see any thing
Re: chat help -
farris - 25.11.2010
bump*****************************************
Re: chat help -
Fj0rtizFredde - 25.11.2010
This should work
pawn Код:
if(strcmp(text, "hello", true) == 0)
{
//Your Code
}