| View previous topic :: View next topic |
| Author |
Message |
Oxijen Expert Cheater
Reputation: 0
Joined: 07 May 2020 Posts: 163 Location: On The Moon
|
Posted: Fri Jan 07, 2022 5:12 pm Post subject: how to add reference to compileCS? |
|
|
how to add reference to compileCS?
like System.Windows.Form; or anything else _________________
I can see you Hitler
Especially When I am On the Moon!!
You are Right now in cheat engine forum  |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25812 Location: The netherlands
|
Posted: Fri Jan 07, 2022 6:04 pm Post subject: |
|
|
references is an indexed table , you need to give the path to the assembly you use
an example you can get from using
| Code: |
references=dotnetpatch_getAllReferences()
for i=1,#references do
print(references[i])
end
|
e.g
| Code: |
references={}
table.insert(references,[[C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Windows.Forms.dll]])
result, error=compileCS([[my cs script that uses system.windows.forms]],references)
|
(if result is nil, read out error)
also make sure that the target you're compiling for has access to System.Windows.Forms (mono/unity doesn't) _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Oxijen Expert Cheater
Reputation: 0
Joined: 07 May 2020 Posts: 163 Location: On The Moon
|
Posted: Sat Jan 08, 2022 8:25 am Post subject: |
|
|
adding reference worked, thx _________________
I can see you Hitler
Especially When I am On the Moon!!
You are Right now in cheat engine forum  |
|
| Back to top |
|
 |
|