Jump to content

Call function error


Recommended Posts

Hey Guys,

I have a trouble with my map script. I want to get all maps which are compatible with the race gamemode. I try it via call function but i get a error.


ERROR: call: failed to call 'mapmanager:getRunningGamemode'

ERROR: call: failed to call 'mapmanager:getMapsCompatibleWithGamemode'

my Code: ( Clientside)

gmodes = call(getResourceFromName("mapmanager"), "getRunningGamemode") 
    local maps = call(getResourceFromName("mapmanager"), "getMapsCompatibleWithGamemode",gmodes) 
        for id,map in ipairs(maps) do 
            maptable[id] = {} 
            maptable[id].info = getResourceName(map) 
            maptable[id].author = getResourceInfo(map,"author") 
                local row = guiGridListAddRow(gMapGrid) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...