I don't think you understand what ToInt does. It turns a string that contains a numeric value into it's actual integer value. So a string with "123" in it can be converted into the actual integer value and manipulated just like any other numerical value. Other examples are...
"46" > 46
"01 555 123" > 1
"123abc" > 123
"Mr Smith" > 0
Do you see what it's doing?
As you want to use a player's name to come up with a serial number, then your starting point should be with the ASCII values of each character of the string. You can use Mid() and Asc() to retrieve the ASCII codes, but it's then up to you how you use them to come up with a serial number.
"46" > 46
"01 555 123" > 1
"123abc" > 123
"Mr Smith" > 0
Do you see what it's doing?
As you want to use a player's name to come up with a serial number, then your starting point should be with the ASCII values of each character of the string. You can use Mid() and Asc() to retrieve the ASCII codes, but it's then up to you how you use them to come up with a serial number.