Jump to content

Recommended Posts

I have a mod with a command that takes alphanumeric arguments. The command does different things depending on whether it was given a number or a letter string. What I'd like to know is how to convert (or try to convert) a string to a number so I can do this. I'd really like to not have two separate commands, but when i tried tonumber (a supposed Lua standard function) it crashed saying tonumber is a nil value. which I found extremely odd. Any help is much appreciated.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...