 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Corroder Grandmaster Cheater Supreme
Reputation: 75
Joined: 10 Apr 2015 Posts: 1668
|
Posted: Fri Dec 23, 2016 9:37 am Post subject: Nesting (Syntax scripting) CE 6.6 vs CE 6.4 |
|
|
Hi,
Let say i have data array like this :
Code: | aob_table = {}
aob_table[1] = 'AA BB'
aob_talbe[2] = 'BB CC'
aob_table[3] = 'DD EE '
aob_table[4] = 'FF GG '
aob_table[5] = 'HH II '
aob_table[6] = 'JJ KK '
function doing_hacks()
doing =
{
{'Hack 1',[[Luacall(scan(aob_table[1],aob_table[2]))
{'Hack 2',[[Luacall(scan(aob_table[3],aob_table[4]))]]},
{'Hack 3',[[Luacall(scan(aob_table[5],aob_table[6]))
}
end
--- Function 'scan' has made in other function |
This script above work in CE 6.6 but when try in CE 6.4
it's gave error "13:nesting of [[..]] is deprecated near '[')"
What different in script syntax specially for nesting to make that script above work in CE 6.4 ?.
Is there any scripting rules references using in CE 6.4 vs CE 6.6 ?
or maybe must read completely about scripting in Lua 5.1 vs Lua 5.3
Thank
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Dec 23, 2016 9:58 am Post subject: |
|
|
You just need to write your code more carefully.
Code: | aob_table = {}
aob_table[1] = 'AA BB'
aob_table[2] = 'BB CC'
aob_table[3] = 'DD EE '
aob_table[4] = 'FF GG '
aob_table[5] = 'HH II '
aob_table[6] = 'JJ KK '
function doing_hacks()
doing =
{
{'Hack 1',[[Luacall(scan(aob_table[1],aob_table[2]))]]},
{'Hack 2',[[Luacall(scan(aob_table[3],aob_table[4]))]]},
{'Hack 3',[[Luacall(scan(aob_table[5],aob_table[6]))]]}
}
end
--- Function 'scan' has made in other function |
|
|
Back to top |
|
 |
Corroder Grandmaster Cheater Supreme
Reputation: 75
Joined: 10 Apr 2015 Posts: 1668
|
Posted: Fri Dec 23, 2016 6:25 pm Post subject: |
|
|
Ah, I see. Script fixed and work also in CE 6.4
Thank a lot Zanzer
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|