Jump to content

Small Problem


Blinker.

Recommended Posts

Posted

Hello ,

i tried to set next map through runcode and i got an error "ERROR: mapmanager\mapmanager_exports.lua:64: mapmanager: Invalid map specified."

well, i don't know how to define the map.

i've tried that:

exports.mapmanager:changeGamemodeMap ("[DD] Cross XL" ,true) 

Thanks.

Posted

Thanks to both , but the problem is How would i be able to get the Resource Name from its meta name?

if i try this

exports.mapmanager:changeGamemodeMap (getResourceFromName("[DD] Cross XL") ,nil,true) 

it won't work

i need something like this

exports.mapmanager:changeGamemodeMap (getResourceFromName(getResourceName(??????)) ,nil,true) 

i still can't figure it out

Thanks.

Posted
don't use getResourceFromName .. Just put Resource Name .

WAIT? If you just put the resource name then it won't work. See the source code ( i just saw ). It will return FALSE ALWAYS if you see mapmanager_exports.lua ( line 173 ). It doesn't get a resource name. # ZA7F, It only gives a name not a RESOURCE DATA. You've more to learn. Last time you did the same mistake with player element.

  
exports.mapmanager:changeGamemodeMap (getResourceFromName("gamemodename") ,getReasonFromName("mapname",true) 
  

Map name cannot be nil and it must be compatiable with it.

Posted
i think mapManger use getResourceFromName .. But if not used .. of course use getResourceFromName .

See.. Always read it.

And map cannot be nil @ Blinker

As I said before or it will return false!

Contact me on skype for more help @ anubhav.agarwal87

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...