ShowPlayerDialog's title and Kick
#1

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);
}
Reply
#2

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

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

PHP код:
forward KickEx(playerid);
public 
KickEx(playerid)
{
   
Kick(playerid);
   return 
1;
}

public 
OnPlayerConnect(playerid)
{
   
ShowPlayerDialog(playerid1DIALOG_STYLE_MSGBOX" ""Test message""Close""");
   
SetTimerEx("KickEx"1000false"i"playerid);

leave an space on title.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)