donpakaa How do I cheat?
Reputation: 0
Joined: 01 Jan 2020 Posts: 1
|
Posted: Wed Jan 01, 2020 10:13 am Post subject: lua script help |
|
|
hello guys.
i'll try to be quick so i won't take to much of your time
so.. i'm trying to execute this script to a game>
| Code: | function WriteSignatures(targetSignature, overrideSignature, codePage)
local byteLine = overrideSignature:gsub("%w+", "0x%0,"):sub(1,-2)
local results = AOBScan(targetSignature, codePage)
if (results == nil) then return end
for i = 0, results.Count-1 do
local address = getAddress(results.getString(i))
local lineCode = 'writeBytes('..address..','.. byteLine..')'
loadstring(lineCode)()
end
results.destroy()
end
local targetSignature = '52 65 63 6F 69 6C 43 6F 6D 70'
local overrideSignature = '91 91 91 91 91 91 91 91 91 91'
local codePage = '-X*C*W'
WriteSignatures(targetSignature, overrideSignature, codePage) |
and i get this error>
| Code: | Error:[string "function WriteSignatures(targetSignature, o..."]:5: attempt to perform arithmetic on field 'Count' (a nil value)
Script Error |
i've tried different things, but nothing worked and now i'm out of ideas. anyone could now what's the problem here?
thank you for your time, cheers. |
|