ShowPlayerDialog's title and Kick - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: ShowPlayerDialog's title and Kick (
/showthread.php?tid=598695)
ShowPlayerDialog's title and Kick -
Yousha - 15.01.2016
Hi
SA-MP won't show the
Dialog without Title while using Kick()... is this a valid bug?
(even with delay/timer on Kick)
Not working:
Код:
forward KickEx(const PLAYERID);
public KickEx(const PLAYERID)
{
Kick(PLAYERID);
return 1;
}
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "", "Test message", "Close", "");
SetTimerEx("KickEx", 1000, false, "i", playerid);
}
Working:
Код:
forward KickEx(const PLAYERID);
public KickEx(const PLAYERID)
{
Kick(PLAYERID);
return 1;
}
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Test title", "Test message", "Close", "");
SetTimerEx("KickEx", 1000, false, "i", playerid);
}
Respuesta: ShowPlayerDialog's title and Kick -
IzadorO - 15.01.2016
It's not a bug. It's intentional, as why would you want to include a dialog without a title. The dialog's title had nothing to do with the Kick timer. It just wouldn't appear, because there was no title.
https://sampforum.blast.hk/showthread.php?tid=598682
Re: ShowPlayerDialog's title and Kick -
Yousha - 16.01.2016
Quote:
It just wouldn't appear, because there was no title.
|
Dude, first test it, then...
It appears even Without title, but not when using kick.
Just think about it, what's the relationship between Kick and Dialog's title?
Re: ShowPlayerDialog's title and Kick -
PT - 16.01.2016
PHP код:
forward KickEx(playerid);
public KickEx(playerid)
{
Kick(playerid);
return 1;
}
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, " ", "Test message", "Close", "");
SetTimerEx("KickEx", 1000, false, "i", playerid);
}
leave an space on title.