Port KeyValues to the transitional syntax.

This commit is contained in:
David Anderson
2014-11-08 15:54:40 -08:00
parent 78687080b1
commit f020b5682e
8 changed files with 423 additions and 134 deletions
+5 -5
View File
@@ -132,19 +132,19 @@ DisplayBanReasonMenu(client)
decl String:reasonFull[255];
//Iterate through the kv-file
KvGotoFirstSubKey(g_hKvBanReasons, false);
g_hKvBanReasons.GotoFirstSubKey(false);
do
{
KvGetSectionName(g_hKvBanReasons, reasonName, sizeof(reasonName));
KvGetString(g_hKvBanReasons, NULL_STRING, reasonFull, sizeof(reasonFull));
g_hKvBanReasons.GetSectionName(reasonName, sizeof(reasonName));
g_hKvBanReasons.GetString(NULL_STRING, reasonFull, sizeof(reasonFull));
//Add entry
AddMenuItem(menu, reasonFull, reasonName);
} while (KvGotoNextKey(g_hKvBanReasons, false));
} while (g_hKvBanReasons.GotoNextKey(false));
//Reset kvHandle
KvRewind(g_hKvBanReasons);
g_hKvBanReasons.Rewind();
DisplayMenu(menu, client, MENU_TIME_FOREVER);
}