Jump to content

Small Problem


Blinker.

Recommended Posts

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.

Link to comment
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.

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