Question|How to SetTimerEx on the function showPlayerDialog? -
KfirRP - 16.11.2011
I was trying to do this
pawn Код:
SetTimerEx("ShowPlayerDialog", 2000, 0, "i", playerid, "i", playerid, "i", 2, "i", DIALOG_STYLE_LIST, "s", "Head", "Text", "s", "Choose", "s", "Quit");
Wont work. Whats the correct way to do it?
Re: Question|How to SetTimerEx on the function showPlayerDialog? -
AeroBlast - 16.11.2011
pawn Код:
SetTimerEx("ShowDialog",2000,false,"i",playerid); //At the spot where you start your timer
forward ShowDialog(playerid);
public ShowDialog(playerid) return ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Head", "Text","Choose","Quit");
Didn't test it.
Re: Question|How to SetTimerEx on the function showPlayerDialog? -
MP2 - 16.11.2011
pawn Код:
forward DialogShowTimer(playerid, dialogid, dialogstyle, dialogcaption[], dialoginfo[], dialogbtn1[], dialogbtn2[]);
public DialogShowTimer(playerid, dialogid, dialogstyle, dialogcaption[], dialoginfo[], dialogbtn1[], dialogbtn2[])
{
return ShowPlayerDialog(playerid, dialogid, dialogstyle, dialogcaption, dialoginfo, dialogbtn1, dialogbtn2);
}
However, I don't think you can pass strings with SetTimerEx*, so it may not be possible this way.
*IIRC it's a bug.
Re: Question|How to SetTimerEx on the function showPlayerDialog? -
KfirRP - 16.11.2011
MP2, your public is nothing. Just some other kind of way to make the showplayerdialog function.
If impossible, I will come up wtih something, thanks then.
Re: Question|How to SetTimerEx on the function showPlayerDialog? -
MP2 - 16.11.2011
But that's exactly what you're trying to do..?