AppendConfigFileElem params [097 2007-08-23 RC5 (& other

Report core bugs regarding the Ultima Online Emulator Core release (version 097). You can attach your Core Dump. One bug per post.

Moderator: POL Developer

Locked
Developer Silver
Apprentice Poster
Posts: 58
Joined: Sun Feb 05, 2006 1:34 pm
Location: Italy

AppendConfigFileElem params [097 2007-08-23 RC5 (& other

Post by Developer Silver »

In docs the function AppendConfigFileElem( filename, elemtype, elemkey, properties ); reports that fourth parameter must be an array of arrays or an array of structs...
Array of Arrays {propname,value}, or array of structs { name, value }
... while in function description and in cfgfile.em only the array of structs is mentioned...
Properties must be an array of structures, where each element is a structure containing a name member first, and a value member second.

... but in fact only the array of arrays seems to work coprrectly :?

Using an array of structs only write an empty element in .cfg file, even if function return 1.
Locked