Port KeyValues to the transitional syntax.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user