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
User avatar
Darlex
Party member
Posts: 118
Joined: Sun Sep 24, 2017 10:02 am
Location: absolutely not Chile
Contact:

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

Post by Darlex » Mon May 13, 2019 12:05 am

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.
culdud uwu

User avatar
raidho36
Party member
Posts: 1947
Joined: Mon Jun 17, 2013 12:00 pm

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

Post by raidho36 » Mon May 13, 2019 1:17 am

Code: Select all

string.byte ( str, i )

User avatar
HDPLocust
Citizen
Posts: 52
Joined: Thu Feb 19, 2015 10:56 pm
Location: Ru
Contact:

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

Post by HDPLocust » Mon May 13, 2019 1:39 pm

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: 1947
Joined: Mon Jun 17, 2013 12:00 pm

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

Post by raidho36 » Mon May 13, 2019 9:23 pm

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: 2732
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 » Mon May 13, 2019 11:22 pm

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: Google [Bot] and 4 guests