Page 1 of 1

Convert character into a integer number from 1-255 [Solved]

Posted: Mon May 13, 2019 12:05 am
by Darlex
How i can do that? (is on the title)

Re: Convert character into a integer number from 1-255

Posted: Mon May 13, 2019 1:17 am
by raidho36

Code: Select all

string.byte ( str, i )

Re: Convert character into a integer number from 1-255 [Solved]

Posted: Mon May 13, 2019 1:39 pm
by HDPLocust
Your questions about lua, not love2d. Read the book: http://www.lua.org/manual/5.1/

Re: Convert character into a integer number from 1-255 [Solved]

Posted: Mon May 13, 2019 9:23 pm
by raidho36
It's all good though. On an off chance that someone uses search when having similar problem, they will find this thread and it will help them.

Re: Convert character into a integer number from 1-255 [Solved]

Posted: Mon May 13, 2019 11:22 pm
by zorg
and then chances are they'll necro it with something irrelevant after 10 years :P