Change History
New api methods will be announced here. Changes in our data that is relevant to checkers scripts/tags will also be announced here.
Changed By: magma1447
Change Date: March 02, 2018 01:23PM
Re: Big boring changes incoming (PHP7)
[url=https://project-gc.com/Challenges//14410]https://project-gc.com/Challenges//14410[/url]
[b]This one is scary![/b]
[string ""]:26: attempt to index field '?' (a nil value)
hides[1] can be nil at line 26
If I replace it with hides[0] the script works, and gives the same result as live. From what I remember, LUA doesn't base indexes on 0? But obviousle table.sort in this LUA version suddenly does?
A solution is of course something like if hides[0] ~= nil then .. else .. end
Any thoughts on how many scripts this might affect?
Original Message
Author: magma1447
Date: March 02, 2018 01:09PM
Re: Big boring changes incoming (PHP7)
[url=https://project-gc.com/Challenges//14410]https://project-gc.com/Challenges//14410[/url]
[b]This one is scary![/b]
[string ""]:26: attempt to index field '?' (a nil value)
hides[1] can be nil at line 26
If I replace it with hides[0] the script works, and gives the same result as live. From what I remember, LUA doesn't base indexes on 0? But obviousle table.sort in this LUA version suddenly does?
Any thoughts on how many scripts this might affect?