Tockra Posted July 25, 2010 Posted July 25, 2010 Hello guys, thats my script : http://pastebin.com/tR18ihMe But the gamemod name and the map name will not change...
50p Posted July 25, 2010 Posted July 25, 2010 Is the rest of the code working? If not, use getResourceRootElement( ) instead of resourceRoot (if resourceRoot hasn't been defined).
50p Posted July 25, 2010 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.
m4rsje Posted July 25, 2010 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
Tockra Posted July 25, 2010 Author 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...
m4rsje Posted July 25, 2010 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
Tockra Posted July 25, 2010 Author Posted July 25, 2010 I currently have this : <info author="Tockra" version="Alpha" type="gamemode" name="Tim" description="rp" />
MaddDogg Posted July 25, 2010 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.
Tockra Posted July 25, 2010 Author 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...
MaddDogg Posted July 25, 2010 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.
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