l'erreur est:
./Config/Export/lod.lua:12: attempt to index local 'stations' (a function value)
merci par avance
Code : Tout sélectionner
function LuaExportStart()
local file = io.open("./config/export/lodout.log", "w")
if file then
io.output(file)
end
local stations = LoGetPayloadInfo()
local canon = stations.Cannon.shells
io.write(string.format("Canon = %d \n",canon))
if stations then
io.write(string.format("Current = %d \n",stations.CurrentStation))
io.close()
end