[HELP] Have a software against theft?

Aylin

What is cheating?
Mar 6, 2017
2
0
1
#1
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:
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
 

jungletek

Reality Bytes
Staff member
Shogun
Oct 17, 2017
156
6
18
#2
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...
 

corroder

What is cheating?
Mar 3, 2017
17
0
1
#3
Just change > to >
and change &lt; to <
seem you jut did copy paste that script to your script editor such as notepad++
 

jungletek

Reality Bytes
Staff member
Shogun
Oct 17, 2017
156
6
18
#4
corroder post_id=27817 time=1513052991 user_id=126 said:
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.