zXe Posted July 7, 2012 Share Posted July 7, 2012 (edited) Hi, I have a problem with nextmap of gamemode Race. I did this and then when i select a nextmap, does not appear the nextmap below the map. which would be my mistake =/ --- race_client.lua [All] nextmapdisplay = dxText:create('#ff9900Next Map: #ffffffnot set now...', 2, screenHeight - fontX/2, false, 'default-bold', fonts*2, 'left') g_dxGUI.nextmapdisplay:type('shadow', 1, 0, 0, 0, 175) g_dxGUI.nextmapdisplay:colorCoded(true) function resetposs() g_dxGUI.nextmapdisplay:visible(false) g_dxGUI.mapdisplay:position(2, sH - fontX/2, false) fps:position(2, sH-fontX*2.5, false) spectators:position(2, sH-fontX*1.5, false) end addEvent("resetposs", true) addEventHandler("resetposs", getRootElement(), resetposs) function nextMapSet(mapname) g_dxGUI.mapdisplay:position(2, sH - fontX*1.5, false) fps:position(2, sH-fontX*3.5, false) spectators:position(2, sH-fontX*2.5, false) g_dxGUI.nextmapdisplay:visible(true) g_dxGUI.nextmapdisplay:text("#ff9900Next Map: #ffffff" ..mapname) end addEvent("onNextMap", true) addEventHandler("onNextMap", getRootElement(), nextMapSet) Edited July 7, 2012 by Guest Link to comment
MIKI785 Posted July 7, 2012 Share Posted July 7, 2012 Which is client and which is server? In what script files they are? Are there any warnigs/errors in debug? I can't understand those events.. Link to comment
TwiX! Posted July 7, 2012 Share Posted July 7, 2012 you stole script from ffs race, we won't help you Link to comment
zXe Posted July 7, 2012 Author Share Posted July 7, 2012 STOLE??? ._. if stolen, this script not works ... but THE SCRIPT WORKs ... just do not see the nextmap Link to comment
GTX Posted July 7, 2012 Share Posted July 7, 2012 @TwiX: How do you know that? You must edit racevoting_server.lua. Link to comment
TwiX! Posted July 7, 2012 Share Posted July 7, 2012 @TwiX: How do you know that?You must edit racevoting_server.lua. same code as in ffs script + name triggers.. 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