Log In  


I'm not entirely sure if this is bug or my mistake, but i can't figure it out.
Basicly I have code that should save what I'm typing (it's the last line) to a var named code.
However if i add a function for deletion it doesn't work properly:
I can still type, however i have to hold for few seconds before it registers key presses, which does not apply for the backspace.
I also figured out, that only the first code will work properly, meaning if i swap the if with the var set, only typing works.

 if stat(31)=="\b" then
   code=sub(code,0,-2)
 end
 code=code..stat(31)

I'd be really happy to know if it's my mistake or a bug.



local key=stat(31)
if key=="\b" then
  code=sub(code,0,-2)
end
code ..= stat(31)

this might work.


hello


1

@zep & @girres42 thx i couldn't figure that out!



[Please log in to post a comment]