From 023f9b43ea5b48eff87e682220d5e0595f78aa12 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 7 Aug 2004 23:07:03 +0000 Subject: [PATCH] small fix --- plugins/adminvote.sma | 10 +++++----- plugins/lang/miscstats.txt | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/adminvote.sma b/plugins/adminvote.sma index 525a0240..3db1544d 100755 --- a/plugins/adminvote.sma +++ b/plugins/adminvote.sma @@ -211,18 +211,18 @@ public cmdVoteMap(id,level,cid) { console_print(id,"%L",id,"GIVEN_NOT_VALID",lMaps) return PLUGIN_HANDLED } - new menu_msg[256] + new menu_msg[256], len = 0 new keys = 0 if (g_validMaps > 1) { keys = MENU_KEY_0 - format(menu_msg,255,g_coloredMenus ? "\y%L: \w^n^n" : "%L: ^n^n",LANG_SERVER,"CHOOSE_MAP") + len = format(menu_msg,255,g_coloredMenus ? "\y%L: \w^n^n" : "%L: ^n^n",LANG_SERVER,"CHOOSE_MAP") new temp[128] - for(new a = 0; a < g_validMaps; ++a) { + for (new a = 0; a < g_validMaps; ++a) { format(temp,127,"%d. %s^n",a+1,g_optionName[a]) - add(menu_msg,255,temp) + len += copy(menu_msg[len],255-len,temp) keys |= (1<