SA-MP Forums Archive
MSGBOX response - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: MSGBOX response (/showthread.php?tid=136546)



MSGBOX response - jaheem - 25.03.2010

Plz little help when i click quit i didnot get kicked what worng
Quote:

ShowPlayerDialog(playerid, SEXMENU, DIALOG_STYLE_MSGBOX, "Headline", "Welcomings message", "Male", "Quit");

Quote:

if(dialogid == SEXMENU)
{
if(response)
{
if(RegistrationStep[playerid] == 1)
{
SetPlayerPos(playerid, 1744.91, -1862.21, 13.5;
PlayerInfo[playerid][pSex] = 1;
RegistrationStep[playerid] = 2;
PlayerInfo[playerid][pChar] = 26;
SendClientMessage(playerid, COLOR_WHITE, "Ok, so you are a Male.");
ShowPlayerDialog(playerid, ORIGINMENU, DIALOG_STYLE_LIST, "What is your Origin?","Asia\nEurope\nAfrica\nNorth America\nSouth America ", "Continue", "Cancel");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You selected 'Quit', therefore you got kicked. Goodbye!");
Kick(playerid);
}
}
}
return 1;
}




Re: MSGBOX response - [MWR]Blood - 25.03.2010

Check for errors or warnings.


Re: MSGBOX response - ¤Adas¤ - 25.03.2010

Only this is wrong:

pawn Код:
else
   {
        SendClientMessage(playerid, 0xFF0000FF, "You selected 'Quit', therefore you got kicked. Goodbye!");
       Kick(playerid);
       }
xD(why only males can enter ur server? don't understand.. -_-)


Re: MSGBOX response - jaheem - 25.03.2010

Quote:
Originally Posted by ikarus
Check for errors or warnings.
there no errors
want when poeple quit they get kicked