dialog_msgbox help - 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)
+--- Thread: dialog_msgbox help (
/showthread.php?tid=344593)
dialog_msgbox help -
TuTh - 21.05.2012
if i am pressing "cancel" appear server closed connection. i wanna just close the dialog
Код:
ShowPlayerDialog(i, 9, DIALOG_STYLE_MSGBOX, "job", "You are about to become a Car Jacker", "Accept", "Cancel");
Код:
if(dialogid == 9)
{
if(response)
{
if(PlayerInfo[playerid][pJob] == 0)
{
if(GettingJob[playerid] > 0)
{
if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255)
{
if(GettingJob[playerid] == 2 || GettingJob[playerid] == 5 || GettingJob[playerid] == 10)
{//Allow the 3 jobs for Family Members
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Cant get a Job, you are in a Family !");
return 0;
}
}
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command.");
PlayerInfo[playerid][pJob] = GettingJob[playerid];
GettingJob[playerid] = 0;
return 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You already have a Job, use /quitjob first !");
return 0;
}
}
}
if(dialogid == 1)
{
AW: dialog_msgbox help -
Drebin - 21.05.2012
Show us the complete code for dialog 9 in OnDialogResponse.
You seem to have Kick() inside the else statement of "if(response)".
Re: dialog_msgbox help -
TuTh - 21.05.2012
this is all.... dont have any kick in else of if(Response)