ex: Brinary.TextBin("f") returns 01100110
ex: Brinary.BinText(01100110) returns "f"
pastebin link: https://pastebin.com/THUYFuSG
function TextBin(text.byte(ch))
r = ""
chn(128) chn(64) chn(32) chn(16)
chn(8) chn(4) chn(2) chn(1)
return cc
end
I fixed my code and tested it, it should be goochie now.Uhm. This isn't valid Lua.function TextBin(text.byte(ch)) r = "" chn(128) chn(64) chn(32) chn(16) chn(8) chn(4) chn(2) chn(1) return cc end
Not even the algorithm you failed to implement works. If you put in 128, it'd be greater than all of 1, 2, 4, 8…, so you'd get 11111111 back.
Edit: …in theory. I mean you wouldn't because the code isn't even valid syntactically.
As Exerro said, this code is not valid lua. It has syntax error(s) which you would need to fix.I fixed my code and tested it, it should be goochie now.
before pointing out an error in the code test it first and tell me how to activate the bug.
As Exerro said, this code is not valid lua. It has syntax error(s) which you would need to fix.I fixed my code and tested it, it should be goochie now.
before pointing out an error in the code test it first and tell me how to activate the bug.
Try and run the pastebin program given in the original post and see the syntax error appearing.
So again, you need to test your program before publishing it. If you're asking for help, I am sure someone would be willing to look through for other mistakes at the Ask a Pro section.
EDIT: King was a bit faster than me, so i guess i got ninja'd
My program didn't update on pastebin… Sorry about that.Try running your program before RELEASING it. A syntax error isnt exactly something you can overlook.
I'm glad you like it! Im late because i thought the topic was dead.Cool, that works just fine for me. Nice little API! :)/>
I'm glad you like it! Im late because i thought the topic was dead.Cool, that works just fine for me. Nice little API! :)/>
I've noticed that if my programs work well then i get almost no replys, but if there is a problem then i get all sorts of replys.