if(strfind ??
#1

Who can explain this?
I don't understand what i need to make
I want when a player writes a phrase you hear a sound! I know to do with the sound but I want to do with if(strfind
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "Enter-text-here", true) != -1) { // this will search in "text" array the string "Enter-text-here" and will ignore uppercase if used,to set it to case sensetive,set the last parameter to false.
        // put sound code here
    }
    return 1;
}
Reply
#3

Thx
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)