^.^ Posted August 30, 2012 Share Posted August 30, 2012 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-Code: 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) guiGridListSetItemText(gMapGrid,row,1,getResourceName(map),false,false) end Link to comment
CapY Posted August 30, 2012 Share Posted August 30, 2012 Do you even have a "mapmanager" resource? Link to comment
^.^ Posted August 31, 2012 Author Share Posted August 31, 2012 I solved the problem. I try to use this Code serverside and now it works! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now