View previous topic :: View next topic |
Author |
Message |
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Fri Nov 02, 2012 6:50 pm Post subject: How to make CEEdit show array of byte values? |
|
|
So I tried this
setProperty (CETrainer_CEEdit1, "Text", readBytes ("money", 10))
But didn't show me bytes, and then show'd me "Not enough memory" when I tried to put 30, and then I put 10 again and it said access violation, and it got to freeze mode.
Anyway to translate it? _________________
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Nov 03, 2012 7:52 am Post subject: |
|
|
Code: | resultArray = readBytes ("money",10,true)
for i=1,#resultArray do
resultArray[i] = string.sub('0'..string.format('%X',resultArray[i]),-2)
end
control_setCaption(CETrainer_CEEdit1, table.concat(resultArray)) |
It should translate it to hex values. _________________
|
|
Back to top |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Sat Nov 03, 2012 10:40 am Post subject: |
|
|
thank you. _________________
|
|
Back to top |
|
|
|