Question|How to SetTimerEx on the function showPlayerDialog?
#1

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?
Reply
#2

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.
Reply
#3

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.
Reply
#4

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.
Reply
#5

But that's exactly what you're trying to do..?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)