format(string,sizeof(string),"ItemData("idx[%d]Name[%s]Info[%s]Abt[%s]Price[%d]Weight[%d]Type[%d]Delay[%d]ModelID[%d]ModelColor[%d]ModelRotX[%f]ModelRotY[%f]ModelRotZ[%f]ModelZoom[%f], item_idx, Item[item_idx][Name], Item[item_idx][Info], Item[item_idx][Ability], Item[item_idx][Price], Item[item_idx][Weight], Item[item_idx][Type], Item[item_idx][Delay], Item[item_idx][ModelID], Item[item_idx][ModelColor], Item[item_idx][ModelRotX], Item[item_idx][ModelRotY], Item[item_idx][ModelRotZ], Item[item_idx][ModelZoom]);
format(string,sizeof(string), "ItemData(" & _ "idx[%d]" & _ "Name[%s]" & _ "Info[%s]" & _ "Abt[%s]" & _ "Price[%d]" & _ "Weight[%d] & _ "Type[%d] & _ "Delay[%d]" & _ "ModelID[%d]" & _ "ModelColor[%d]" & _ "ModelRotX[%f]" & _ "ModelRotY[%f]" & _ "ModelRotZ[%f]" & _ "ModelZoom[%f]", item_idx, Item[item_idx][Name], Item[item_idx][Info], Item[item_idx][Ability], Item[item_idx][Price], Item[item_idx][Weight], Item[item_idx][Type], Item[item_idx][Delay], Item[item_idx][ModelID], Item[item_idx][ModelColor], Item[item_idx][ModelRotX], Item[item_idx][ModelRotY], Item[item_idx][ModelRotZ], Item[item_idx][ModelZoom]);
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...
format(string,sizeof(string),"ItemData(idx[%d]\nName[%s]\nInfo[%s]\n ....", item_idx, Item[item_idx][Name], Item[item_idx][Info]);
ShowPlayerDialog(playerid, DIALOGNAME, DIALOG_STYLE_MSGBOX,"Title",string,"OK");
The only way to do it would be to have lots of formats to my best knowledge.
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... |