03-30-2016, 02:18 PM
Googling a little points me to
string_digits(number) strips all letters out
for the sake of testing, have it print out what string_digits(number) returns, if it's completely empty or a 0, if it's completely empty just slap another if in
too lazy to write gamemaker but basically the code after that would look like
>please give numbers (code to get numbers)
>(if using string_digits(number)) hey this isn't a number shithead
>(if it passes, if for even and odd and all that)
string_digits(number) strips all letters out
for the sake of testing, have it print out what string_digits(number) returns, if it's completely empty or a 0, if it's completely empty just slap another if in
too lazy to write gamemaker but basically the code after that would look like
>please give numbers (code to get numbers)
>(if using string_digits(number)) hey this isn't a number shithead
>(if it passes, if for even and odd and all that)