- Joined
- Jul 1, 2007
- Messages
- 6,677
Hm, so just out of pure curiosity, I made this bit of code (with the event of entering a chat string that begins in "Execute ")
So basically what this does is when you would type, for example, "Execute CreateUnit(Player(0), 'hfoo', 0.00, 0.00, 270.00)" in game it would do that.
So what I'm wondering is if there is any way to stop it if you make an incorrect argument because right now it just fatal errors.
JASS:
call ExecuteFunc(EventPlayerChatString(), 8, StringLength(EventPlayerChatString()))
So basically what this does is when you would type, for example, "Execute CreateUnit(Player(0), 'hfoo', 0.00, 0.00, 270.00)" in game it would do that.
So what I'm wondering is if there is any way to stop it if you make an incorrect argument because right now it just fatal errors.