View Single Post
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 01-24-2015 , 17:21   Re: [SOLVED] KeyValue Parsing
Reply With Quote #7

Quote:
Originally Posted by WildCard65 View Post
this should work:
PHP Code:
    do
    {
        
// Grab the ID
        
decl String:AttributeID[6];
        
KvGetSectionName(handleAttributeID6);
        
        
// Grab its value
        
decl String:AttributeValue[20];
        
KvGetString(handleNULL_STRINGAttributeValue20); //Docs say: Name of the key, or NULL_STRING.
        
        
ServerCommand("say [%s, %s]"AttributeIDAttributeValue);
        
    } while (
KvGotoNextKey(kvfalse)); 
Oh beautiful that works perfectly! Thank you so much! That should cut processing time by about a half.
Potato Uno is offline