08.05.2011, 18:42
Why dont this work?
i can only use numbers 1, 2, 3, 4, 5, 6, 7, 8, 9. if the string is "500" then i get the Error message, but i want to use 500!
pawn Code:
#define IsValidText(%1) regex_match(%1, "[a-zA-Z0-9]")
pawn Code:
if(!IsValidText(string) return SendClientMessage(playerid, 0xFF0000FF, "Error: Only use letters from A till Z uppercase and undrcase! you can also use numbers 0 till 9");