- Joined
- Nov 30, 2007
- Messages
- 1,202
A function on my map is supposed to convert strings to real. But I don't know how to detect if a string is not a set of correct characters.
"1.11" - correct
"3.00 - correct
"3" - correct
"0.01" correct
"aaa" incorrect
etc.
- I want a player to type -tribute red (real) but if there is no real I need to detect it.
- Negative values don't work (return negative)
- Values > 3 (return 3.00)
- Text don't work (returns negative)
"1.11" - correct
"3.00 - correct
"3" - correct
"0.01" correct
"aaa" incorrect
etc.
- I want a player to type -tribute red (real) but if there is no real I need to detect it.
- Negative values don't work (return negative)
- Values > 3 (return 3.00)
- Text don't work (returns negative)