Not getting kicked when cancelling dialog
#6

Quote:
Originally Posted by Chrillzen
Посмотреть сообщение
So, I need my player to get kicked if he clicks the cancel button while on the login screen. Nothing happens.

My code:

pawn Код:
case DIALOG_LOGIN:
        {
            if (!response)
            return Kick(playerid);
            else // Pressed ENTER or clicked 'Login' button
            {
replace with


pawn Код:
case DIALOG_LOGIN:
        {
            if (!response) { Kick(playerid); } //Kicked!!!!!
            else // Pressed ENTER or clicked 'Login' button
            {
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)