09.01.2016, 01:10
(
Последний раз редактировалось RoboN1X; 09.01.2016 в 01:35.
Причина: removed bool: they don't usually place this on top of script
)
Try:
Not sure if it's best way (as it finds for string),
But you could also use this to find a single character:
then you would use this:
Код:
if(strfind(inputtext, ".", true) == -1)
But you could also use this to find a single character:
Код:
HasDot(string[]) { new len = strlen(string); for(new i = 0; i < len; i++) { if(string[i] == '.') return true; } return false; }
Код:
if(!HasDot(inputtext))