15.02.2015, 00:19
This is the layout of my table, I have five material indexes for each furniture.
I use sscanf to separate with "|" delimiter and then set the object material according to the created dynamic object.
When saving the furniture I just retrieve the object material using GetDynamicObjectMaterial text and then format the first five slots like this "xx|xx|xx|xx", for example: http://i.imgur.com/dkMzwau.png
model|txdname|texturename|color, 0 = default
I use sscanf to separate with "|" delimiter and then set the object material according to the created dynamic object.
When saving the furniture I just retrieve the object material using GetDynamicObjectMaterial text and then format the first five slots like this "xx|xx|xx|xx", for example: http://i.imgur.com/dkMzwau.png
model|txdname|texturename|color, 0 = default