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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Darlex
Party member
Posts: 128
Joined: Sun Sep 24, 2017 10:02 am
Location: Chile
Contact:

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

Post by Darlex »

How i can do that? (is on the title)
Last edited by Darlex on Mon May 13, 2019 11:45 am, edited 1 time in total.
Hi! I wish you have an amazing day!
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

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

Post by raidho36 »

Code: Select all

string.byte ( str, i )
User avatar
HDPLocust
Citizen
Posts: 65
Joined: Thu Feb 19, 2015 10:56 pm
Location: Swamp
Contact:

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

Post by HDPLocust »

Your questions about lua, not love2d. Read the book: http://www.lua.org/manual/5.1/
Science and violence
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

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

Post 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.
User avatar
zorg
Party member
Posts: 3444
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

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

Post by zorg »

and then chances are they'll necro it with something irrelevant after 10 years :P
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Bule, pyxledev and 82 guests