Quote custom vote winning value (bug 6578).

This commit is contained in:
Nicholas Hastings 2017-01-21 22:57:37 -05:00
parent 5519dd0a14
commit 56210f3e96

View File

@ -405,7 +405,7 @@ public cmdVote(id, level, cid)
set_cvar_float("amx_last_voting", get_gametime() + vote_time) set_cvar_float("amx_last_voting", get_gametime() + vote_time)
g_voteRatio = get_cvar_float("amx_vote_ratio") g_voteRatio = get_cvar_float("amx_vote_ratio")
replace_all(quest, charsmax(quest), "%", ""); replace_all(quest, charsmax(quest), "%", "");
format(g_Answer, charsmax(g_Answer), "%s - %%s", quest) format(g_Answer, charsmax(g_Answer), "%s - ^"%%s^"", quest)
show_menu(0, keys, menu_msg, floatround(vote_time), "Vote: ") show_menu(0, keys, menu_msg, floatround(vote_time), "Vote: ")
set_task(vote_time, "checkVotes", 99889988) set_task(vote_time, "checkVotes", 99889988)
g_voteCaller = id g_voteCaller = id