ID:1410280
 
(See the best response by Super Saiyan X.)
The text2num() proc only works for numerical values. What do I use when what I'm trying to retrieve is text and not a number?
Best response
Then don't use text2num() for things that aren't numbers? I thought that was obvious.

You should probably explain exactly what yer doin', and provide some snippet of code for context.
mob 
proc
hubload()
var/scores=world.GetScores(key)
scores_found=!isnull(scores)
if(scores)
var/list/params=params2list(scores)
if(params["Level"])
level=text2num(params["Level"])
world<<"[src] is level [level]!"
if(params["Rank"])
rank=text2num(params["Rank"])
world<<"[src] is ranked [rank]!"


Level is a numerical value. Rank, however, is text, such as "Rookie" or "Master" etc.
Right so...just don't use text2num there?
mob 
proc
hubload()
var/scores=world.GetScores(key)
scores_found=!isnull(scores)
if(scores)
var/list/params=params2list(scores)
if(params["Level"])
level=params["Level"]
world<<"[src] is level [level]!"
if(params["Rank"])
rank=params["Rank"]
world<<"[src] is ranked [rank]!"


So this would still work for both?
...Use it for the Level case, but not for the Rank case.
Alright, pardon my programming illiteracy. Cheers for the help mate, appreciate it.
In response to Zerok Kaiba
text2num() converts text into a number.

Your first post asks how to use text2num() on text to turn it into text.

It's text. You want it as text. Why even consider text2num()?
I thought something else needed to be used in place of text2num() for text to work. That probably sounds like it doesn't make sense. Guess I just drew a mind blank or something.