Small 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: Small help (
/showthread.php?tid=113897)
Small help -
cloud9 - 16.12.2009
Well, i want to know how to find whether a name have particular characters or not, for example
if the name is : "[OPC]BLAHBLAH", i want to detect whether name have "[OPC]".
Re: Small help - Zeex - 16.12.2009
You can do this using strfind:
pawn Код:
if (strfind(name_here, text_you_search_for) != -1)
{
// found, do something here
}