Searching for space in inputtext problem - 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: Searching for space in inputtext problem (
/showthread.php?tid=490667)
Searching for space in inputtext problem -
Riwerry - 27.01.2014
Why is this isn't working? It still continues code when I put space to inputtext code:
if (strfind (inputtext, " ")) return SendClientMessage (playerid, -1, "Space in inputtext found!");
Re: Searching for space in inputtext problem -
Konstantinos - 27.01.2014
Returns -1 if it did not find anything.
pawn Код:
if (strfind(inputtext, " ") != -1) return SendClientMessage(playerid, -1, "Space in inputtext found!");
Re: Searching for space in inputtext problem -
Riwerry - 27.01.2014
Thanks you saved me!