|
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
|
01-24-2015
, 17:21
Re: [SOLVED] KeyValue Parsing
|
#7
|
Quote:
Originally Posted by WildCard65
this should work:
PHP Code:
do
{
// Grab the ID
decl String:AttributeID[6];
KvGetSectionName(handle, AttributeID, 6);
// Grab its value
decl String:AttributeValue[20];
KvGetString(handle, NULL_STRING, AttributeValue, 20); //Docs say: Name of the key, or NULL_STRING.
ServerCommand("say [%s, %s]", AttributeID, AttributeValue);
} while (KvGotoNextKey(kv, false));
|
Oh beautiful that works perfectly! Thank you so much! That should cut processing time by about a half.
|
|
|
|