Hi. I have been trying to make a plugin that checks player count, if there are low players than 10 it goes to vote maps automatic. I link up the maps to cvar in the below as you see but it doesn't vote maps. What's wrong? Relevant codes about my problem:
Code:
gFirst_Map, gSecond_Map, gThirth_Map, gFourth_Map
---
gFirst_Map = register_cvar("first_voting_map", "fy_snow")
gSecond_Map = register_cvar("second_voting_map", "fy_pool_day")
gThirth_Map = register_cvar("thirth_voting_map", "fy_iceworld")
gFourth_Map = register_cvar("fourth_voting_map", "fy_iceworld16")
---
server_cmd("amx_votemap %s %s %s %s", gFirst_Map, gSecond_Map, gThirth_Map, gFourth_Map)