Quote:
Originally Posted by Leon9741
Strfind:
pawn Код:
if(strfind("Are you in here?", "you", true) != -1) //returns 4, because the start of 'you' (y) is at index 4 in the string { SendClientMessageToAll(0xFFFFFFFF, "I found you!"); }
1- Where search.
2- What search
3- ignorecase (optional)
4- Position (optional)
|
Lol this is dumb.
because, i know how to use strfind.
i need the whole exmple.
if you are too lazy to do that, dont try to "help".
Quote:
Originally Posted by nmader
pawn Код:
if(strfind(text, "Jackey", true)) { new string[128]; strins(text, "{FF0000}Jackey{FFFFFF}", strfind(text, "Jackey", true)); format(string, sizeof(string), %s, text); OnPlayerText(playerid, string); }
NOTE: Untested.
https://sampwiki.blast.hk/wiki/Strins - Used to insert the formatting into the string.
|
not working :X