chat help
#1

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

bump*****************************************
Reply
#3

This should work
pawn Код:
if(strcmp(text, "hello", true) == 0)
{
    //Your Code
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)