tostring problems

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Posts: 2
Joined: Wed Sep 06, 2006 9:48 pm

tostring problems

Post by vriesm »

I have written the following.

n3 = 116
s3 = tostring("\\" .. n3)
graphicsPrintln(s3) -- Result: \116
s3 = tostring("s3")
graphicsPrintln(s3) -- Result: s3
s3 = tostring("\116")
graphicsPrintln(s3) -- Result: t

I would like to have the result from the last statement, but without to fill in the decimals, but with a solution to use a variable. So this:

s3 = tostring(something with n3) -- Result: t

Is this possible?
Posts: 200
Joined: Sat Dec 24, 2005 2:42 pm

Post by romero126 »

How about I say no.
Post Reply