09.05.2014, 15:09
Quote:
i already kmow that, but i'm looking for a way to get the input text from both the dialogs in one function
Can OnDialogResponse return string? |
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == something) {
format(myArray[playerid], 128, inputtext); //Stores inputtext.
}
if(dialogid == something2) {
if(!strcmp(inputtext, myArray[playerid], false)) { //if both the texts are equal (case-sensitive)
//Stuffs
}
}
return 1;
}