Searching for space in inputtext problem
#1

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!");
Reply
#2

Returns -1 if it did not find anything.
pawn Код:
if (strfind(inputtext, " ") != -1) return SendClientMessage(playerid, -1, "Space in inputtext found!");
Reply
#3

Thanks you saved me!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)