MisterQuestions Posted July 30, 2014 Share Posted July 30, 2014 Hi every one, im triying to edit sigmar, to put it on my server but i dont get the "set map" i got this fail: [2014-07-30 13:32:38] ERROR: [gamemodes]\[MultigamemodeS]\sigmar\server.lua:1190: attempt to concatenate global 'accName' (a nil value) Here is that i used to "setmap" addCommandHandler('nextmap', function( player, command, ... ) local query = #{...}>0 and table.concat({...},' ') or nil if not query then if g_ForcedNextMap then outputRace( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) else outputRace( 'Next map is not set', player ) end return end local admin = false if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then admin = true end if not _TESTING and admin == false then return end local map, errormsg = findMap( query ) if not map then outputRace( errormsg, player ) return end if g_ForcedNextMap == map then outputRace( 'Next map is already set to ' .. getMapName( g_ForcedNextMap ), player ) return end g_ForcedNextMap = map outputChatBox('Next map set to ' .. getMapName( g_ForcedNextMap ) .. ' by ' .. getPlayerName( player ), g_Root, 0, 240, 0) end ) Link to comment
Blaawee Posted July 31, 2014 Share Posted July 31, 2014 Is this hard for you ? addCommandHandler('nextmap', function( player, command, ... ) local query = #{...}>0 and table.concat({...},' ') or nil if not query then if g_ForcedNextMap then outputRace( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) else outputRace( 'Next map is not set', player ) end return end local admin = false local accName = getAccountName( getPlayerAccount( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then admin = true end if not _TESTING and admin == false then return end local map, errormsg = findMap( query ) if not map then outputRace( errormsg, player ) return end if g_ForcedNextMap == map then outputRace( 'Next map is already set to ' .. getMapName( g_ForcedNextMap ), player ) return end g_ForcedNextMap = map outputChatBox('Next map set to ' .. getMapName( g_ForcedNextMap ) .. ' by ' .. getPlayerName( player ), g_Root, 0, 240, 0) end ) Link to comment
MisterQuestions Posted July 31, 2014 Author Share Posted July 31, 2014 but, my code doesn't set map why? whats wrong? Link to comment
Blaawee Posted July 31, 2014 Share Posted July 31, 2014 Well, i dont know about that. Link to comment
Saml1er Posted August 1, 2014 Share Posted August 1, 2014 Sigmar is lobby script... It's not race gamemode and on the top of that sigmar is leaked script. Lock this topic. eeeh. Link to comment
Recommended Posts