- Joined
- Jan 16, 2013
- Messages
- 68
So, in my map I am mainly using chat commands.
Some of them require an integer to be typed in.
In the triggers the integers are being converted to strings so that I can use them as substrings.
The problem is that, if someone types in something that isn't an integer there the game instantly crashes on me which could be problematic in multiplayer.
So, how do I check if that substring can be converted or not before actually trying so that if it can't the program doesn't exit?
Some of them require an integer to be typed in.
In the triggers the integers are being converted to strings so that I can use them as substrings.
The problem is that, if someone types in something that isn't an integer there the game instantly crashes on me which could be problematic in multiplayer.
So, how do I check if that substring can be converted or not before actually trying so that if it can't the program doesn't exit?
Last edited by a moderator: