Tockra Posted July 25, 2010 Share Posted July 25, 2010 Hello guys, thats my script : http://pastebin.com/tR18ihMe But the gamemod name and the map name will not change... Link to comment
50p Posted July 25, 2010 Share Posted July 25, 2010 Is the rest of the code working? If not, use getResourceRootElement( ) instead of resourceRoot (if resourceRoot hasn't been defined). Link to comment
Tockra Posted July 25, 2010 Author Share Posted July 25, 2010 The rest of the code run Link to comment
50p Posted July 25, 2010 Share Posted July 25, 2010 Maybe map name and game type are set by mapmanager when your resource starts. Try onGamemodeStart if your resource is a gamemode. Link to comment
m4rsje Posted July 25, 2010 Share Posted July 25, 2010 Idk but it was wrong in my meta There is a type: gamemode or something like that shizzle or name = hdfkjghdfg Change it there and see what happens Link to comment
Tockra Posted July 25, 2010 Author Share Posted July 25, 2010 Idk but it was wrong in my meta There is a type: gamemode or something like that shizzle or name = hdfkjghdfg Change it there and see what happens I dont know, what you mean ? And 50p i dont found onGamemodeStart in the Wiki... Link to comment
m4rsje Posted July 25, 2010 Share Posted July 25, 2010 Idk but it was wrong in my meta There is a type: gamemode or something like that shizzle or name = hdfkjghdfg Change it there and see what happens I dont know, what you mean ? And 50p i dont found onGamemodeStart in the Wiki... open your meta.xml Something like this is there: Change it Link to comment
Tockra Posted July 25, 2010 Author Share Posted July 25, 2010 I currently have this : <info author="Tockra" version="Alpha" type="gamemode" name="Tim" description="rp" /> Link to comment
m4rsje Posted July 25, 2010 Share Posted July 25, 2010 and it doesn't work? hmm weird. Link to comment
MaddDogg Posted July 25, 2010 Share Posted July 25, 2010 Did you check, if the function is even called or if it just gets stuck before those two lines? Insert some debug lines into your code and check, until which point there are being printed. Then you can see, whether your function is actually called and if yes, where it gets stuck. Link to comment
Tockra Posted July 25, 2010 Author Share Posted July 25, 2010 So i now starting my resource as last resource and now the gamemod name is shown (without setGameType). I need now only the map name... Link to comment
MaddDogg Posted July 25, 2010 Share Posted July 25, 2010 Okay, then other resources interfere with your gamemode. Try stopping the others one by one and restarting the gamemode, until it works. Then you now, which resource resets this. 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