Fixed result always refused even if admin accepted vote result.

This commit is contained in:
Johnny Bergström 2004-10-05 11:16:27 +00:00
parent eb36757ef1
commit 3b670333de

View File

@ -113,9 +113,8 @@ public checkVotes( id ) {
new len = format(menuBody,511,g_coloredMenus ? "\y%L: \w%s^n^n" : "%L: %s^n^n", id, "THE_WINNER", g_mapName[ g_choosed ] ) new len = format(menuBody,511,g_coloredMenus ? "\y%L: \w%s^n^n" : "%L: %s^n^n", id, "THE_WINNER", g_mapName[ g_choosed ] )
len += format( menuBody[len] ,511 - len, g_coloredMenus ? "\y%L^n\w" : "%L^n", id, "WANT_CONT" ) len += format( menuBody[len] ,511 - len, g_coloredMenus ? "\y%L^n\w" : "%L^n", id, "WANT_CONT" )
format( menuBody[len], 511-len, "^n1. %L^n2. %L",id,"YES",id,"NO") format( menuBody[len], 511-len, "^n1. %L^n2. %L",id,"YES",id,"NO")
new menuName[64]
format(menuName,63,"%L","en","THE_WINNER") show_menu( id, 0x03, menuBody, 10, "The winner: ")
show_menu( id, 0x03, menuBody, 10, menuName )
set_task(10.0,"autoRefuse",4545454) set_task(10.0,"autoRefuse",4545454)
} }
else { else {