[Release] VoteSystem
-
LastDemon99 Hey this looks very cool, nice release!
I'm thinking of using this on my servers but while this works perfectly if you have several modes it doesn't really make sense to let players vote for a mode if you only have one mode.
Do you think you could try to add a check to make it so that if
level.dsr.size
== 1 you don't display the mode part?
I tried it myself for a good hour now but I couldn't find how to remove the lower part of the hud that lets you choose a mode.Also line 67 you should replace 4 by
level.dsr.size
-
Resxt I have already updated the script and implemented what you mentioned, thanks for your feedback, and if there is any error you can comment again xD
-
LastDemon99 I think you mixed the
vote_dsr
separators.
Without changing anything it shows this at the end of the game[script]: IW5_VoteSystem:: [ERROR] [script]: check the lenght or format from your maps and dsr
-
Resxt I've updated it again, i hope it's solved xd
-
This post is deleted!
-
LastDemon99 As soon as I finish the game, the voting menu appears, but it only shows me the game types. I already configured vote_drs and vote_maps. And it shows me this error in the console.
-
AlphaBlack double check that you configured everything properly and read the instructions again. Maybe you did a typo somewhere for example. I think there is are limit dvars/limits in the code to how much you can display. It also depends on the mode. Which mode were you playing when this happened?
-
This post is deleted!
-
Noob question here. I am trying to run the script and I get this error
Com_ERROR: $Attempted to overrun string in call to va()i noticed some scripts that i do not have on my folders
#include maps\mp\gametypes_hud_util;
#include common_scripts\utility;
#include maps\mp_utility; -
sica666 these scripts are game's stock scripts, this is completely normal and unrelated to any issue
-
So what might be the problem with the script then?