06.07.2018, 22:56
what is better for dialogs, like what makes code more readable or what is more beneficial?
|
for (new i = 0, l = strlen(inputtext); i < l; i ++)
{
if (inputtext[i] == '%')
{
inputtext[i] = '#';
}
}
#define DIALOG:%1(%2) forward dlg_%1(%2);public dlg_%1(%2)
Dialog_ShowCallback(playerid, using callback dlg_login, DIALOG_STYLE_PASSWORD, "Login", "Type your password below:", "Login", "Leave");
DIALOG:login(playerid, dialogid, response, listitem, string: inputtext[])
{
// code..
}