Extra line in dialog
#4

Quote:
Originally Posted by saffierr
Посмотреть сообщение
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.
To do this, you'll need to store the rules in a database somewhere. Then load them and do something along these lines (Without any of your script its hard to explain what exactly you have to do)

((this code isnt complete, just to give you an idea of what to do))
Код:
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;
}
Reply


Messages In This Thread
Extra line in dialog - by saffierr - 03.03.2016, 19:26
Re: Extra line in dialog - by Chilli9434 - 03.03.2016, 19:28
Re: Extra line in dialog - by saffierr - 03.03.2016, 19:33
Re: Extra line in dialog - by Chilli9434 - 03.03.2016, 20:04
Re: Extra line in dialog - by DTV - 03.03.2016, 22:01

Forum Jump:


Users browsing this thread: 1 Guest(s)