02.01.2019, 09:32
(
Последний раз редактировалось SyS; 04.01.2019 в 08:36.
)
strcmp has a parameter to ignore case
set it to true..
for example
Edit: I misread the question.You want to compare if entered text is exactly equal to "TEsT" in that case leave default value as it is.
https://sampwiki.blast.hk/wiki/Strcmp
Note: above one checks if the text is entirely equal to TEsT and i guess that's what you want.
Код:
strcmp(const string1[], const string2[], bool:ignorecase=false, length=cellmax)
set it to true..
for example
PHP код:
if(!strcmp(stringvar,"test",true)){
}
Edit: I misread the question.You want to compare if entered text is exactly equal to "TEsT" in that case leave default value as it is.
PHP код:
if(!strcmp(stringvar,"TEsT")){
}
Note: above one checks if the text is entirely equal to TEsT and i guess that's what you want.