22.06.2014, 17:36
Hello, how can i make dialog inputtext as global variable?
I tried
But it's not working.
I tried
Код:
mything = inputtext;
mything = inputtext;
strcpy(mything, inputtext, 128);
#define strcpy(%0,%1) strcat((%0[0] = '\0', %0), %1)
new passwords[64];
Dialog:Password(playerid, response, listitem, inputtext[]) { if (response) { if(isnull(inputtext)) { ShowDialog(playerid, Show:<Password>, DIALOG_STYLE_INPUT, ""EMBED_WHITE"Login"EMBED_WHITE"", ""EMBED_WHITE"Please enter your password below", "Okay", "Exit"); return 1; } passwords = inputtext; } else { //dont do nothing } return 1; }