SA-MP Forums Archive
if(strfind ?? - 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)
+--- Thread: if(strfind ?? (/showthread.php?tid=441983)



if(strfind ?? - radiobizza - 05.06.2013

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


Re: if(strfind ?? - Kaperstone - 05.06.2013

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;
}



Re: if(strfind ?? - radiobizza - 05.06.2013

Thx