I have an mta server, and I have a problem that makes the application close to the players, please help me, the problem is:
ERROR: PanelMods/server/sUpdater.lua:15: attempt to concatenate local 'version' (a nil value)
I look at sUpdater.lua and i don´t see a problem, if you can, please help me.
sUpdater.lua:
Updater = { }
function Updater.Notify ( msg )
outputDebugString ( msg );
end
function Updater.Check ( )
Updater.Notify ( "Checking for Mod Downloader updates ");
local called = callRemote("https://community.multitheftauto.com/mta/resources.php", function(_, version)
if ( md5 ( tostring ( version ) ) ~= md5 ( getResourceInfo ( getThisResource(), "version" ) ) ) then
Updater.Notify ( "====================================" );
Updater.Notify ( "= ModDownloader version doesn't match community" );
Updater.Notify ( "====================================" );
Updater.Notify ( "= Your version: ".. getResourceInfo ( getThisResource(), "version" ) )
Updater.Notify ( "= Current version: ".. version )
Updater.Notify ( "= View https://forum.multitheftauto.com/viewtopic.php?f=108&t=86587" );
Updater.Notify ( "====================================" );
end
end, "version", "moddownloader" )
if not called then
outputDebugString ( "FAILED TO CHECK VERSION UPDATE! PLEASE ALLOW ".. getResourceName(getThisResource()) .." ACCESS TO function.callRemote", 1 );
end
end
Updater.Check ( );
setTimer ( Updater.Check, 1000000, 0 );