[HELP] Have a software against theft?

Want Cheat Engine to do something specific and no idea how to do that, ask here. (From simple scripts to full trainers and extensions)
Post Reply
Aylin
What is cheating?
What is cheating?
Posts: 2
Joined: Mon Mar 06, 2017 6:38 pm
Reputation: 0

[HELP] Have a software against theft?

Post by Aylin »

Against code theft, Masters must publish a trainer code!
This is an applied code.
I want to integrate it into another trainer.

But: ')' expected near ';' (Error: ')>') .. I am getting the error.
I have to ask at every forum. Please help me. Thank you

Code: Select all

function bec(data)
    return ((data:gsub('.', function(x)
        local r,b='',x:byte()
        for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
        return r;
    end)..'0000'):gsub('%d%d%d?%d?%d?%d?', function(x)
        if (#x < 6) then return '' end
        local c=0
        for i=1,6 do c=c+(x:sub(i,i)=='1' and 2^(6-i) or 0) end
        return b:sub(c+1,c+1)
    end)..({ '', '==', '=' })[#data%3+1])
end

function bdc(data)
    data = string.gsub(data, '[^'..b..'=]', '')
    return (data:gsub('.', function(x)
        if (x == '=') then return '' end
        local r,f='',(b:find(x)-1)
        for i=6,1,-1 do r=r..(f%2^i-f%2^(i-1)>0 and '1' or '0') end
        return r;
    end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x)
        if (#x ~= 8) then return '' end
        local c=0
        for i=1,8 do c=c+(x:sub(i,i)=='1' and 2^(8-i) or 0) end

       return string.char(c)
  end))
end

User avatar
jungletek
Shogun
Shogun
Posts: 179
Joined: Tue Oct 17, 2017 7:31 am
Reputation: 62

Re: [HELP] Have a software against theft?

Post by jungletek »

The error message is obvious, and literally tells you what is wrong: It's expecting a close parentheses ")" before it sees a semicolon ";", somewhere. If you're lucky, it'll even tell you what line the error occurs on.

You're probably missing a ')' somewhere and it's fucking up how the parser is interpreting your code. Use an editor that has proper syntax highlighting, especially one that highlights open and close parens/brackets/etc., should be easy to see where you're missing one...

User avatar
corroder
Novice Cheater
Novice Cheater
Posts: 17
Joined: Fri Mar 03, 2017 1:54 am
Reputation: 1

Re: [HELP] Have a software against theft?

Post by corroder »

Just change > to >
and change &lt; to <
seem you jut did copy paste that script to your script editor such as notepad++

User avatar
jungletek
Shogun
Shogun
Posts: 179
Joined: Tue Oct 17, 2017 7:31 am
Reputation: 62

Re: [HELP] Have a software against theft?

Post by jungletek »

corroder wrote:
Tue Dec 12, 2017 4:29 am
Just change &gt; to >
and change &lt; to <
seem you jut did copy paste that script to your script editor such as notepad++
Ah, you're right. Sorry I didn't catch that, OP.

Post Reply

Who is online

Users browsing this forum: No registered users