28.11.2014, 09:14
The only way to do it would be to have lots of formats to my best knowledge.
E.g.:
E.g.:
Code:
format(string,sizeof(string),"ItemData("idx[%d]", item_idx); format(string,sizeof(string),"%sName[%s]", string, Item[item_idx][Name]); format(string,sizeof(string),"%sInfo[%s]", string, Item[item_idx][Info]); //and so on...