Searching for big characters in string - 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 big characters in string (
/showthread.php?tid=491098)
Searching for big characters in string -
Riwerry - 29.01.2014
Hello guys, how can I search in string for big character? I guess I know how to check the first character of the string:
pawn Код:
if (inputtext[0] >= 'A' || <= 'Z'') //idk if this will work, this is only for first character
but now, I want to locate underscore and the character after underscore I want check, example:
Name
_Lastname
Re: Searching for big characters in string -
fordawinzz - 29.01.2014
pawn Код:
new pos = strfind(inputtext, "_", true);
if(pos != -1) {
if(inputtext[pos + 1] >= 'A' && inputtext[pos + 1] <= 'Z') // code here
}
Re: Searching for big characters in string -
Riwerry - 29.01.2014
can I ask you? what does mean -1 here? if(pos != -1)