03.03.2016, 19:26
Is it possible to add a extra line into a dialog with a cmd IG?
if yes, What is the function of it?
if yes, What is the function of it?
I don't fully understand you,
I want to add rules IG so whenever I have added a new rule with a cmd ig, I want the Rules dialog updated with the new line init. |
format(msg, sizeof(msg), ""); for(new x=0; x<MAX_RULES; x++) { format(string, sizeof(string), "%s%s", msg, rulevariable[ruleid][RuleName]; } SendPlayerDialog(playerid, DIALOG_X, DIALOG_STYLE_X, "Title", msg, "Button1", "Button2"); return 1; }
new rules[128], string[128];
format(string, sizeof(string), "Rule 1: x\n");
strcat(rules, string);
format(string, sizeof(string), "Rule 1: x\n");
strcat(rules, string);
ShowPlayerDialog(playerid, dialogid, dialogstyle, "Dialog Caption", rules, "Button 1", "Button 2");
return 1;