I need help with converting substrings from the chat to integers.
I can convert a specific number like "240" to the ability "a", but I don't know how to make ANY number from 1 to 360 go to the integer if player 1 writes it. I don't want it to be possible to have a number like 380 or -10.
If it is possible I would like it on this form:
"Angle XXX" The players write Angle, then a space, then three numbers to decide the integer. Like 008 or 195.
Pleaase help mee ?
I can convert a specific number like "240" to the ability "a", but I don't know how to make ANY number from 1 to 360 go to the integer if player 1 writes it. I don't want it to be possible to have a number like 380 or -10.
If it is possible I would like it on this form:
"Angle XXX" The players write Angle, then a space, then three numbers to decide the integer. Like 008 or 195.
Pleaase help mee ?