SA-MP Forums Archive
DIALOG_STYLE_MSGBOX - 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: DIALOG_STYLE_MSGBOX (/showthread.php?tid=137508)



DIALOG_STYLE_MSGBOX - ScottCFR - 28.03.2010

Can i use the "Case" setup for MSGBOX dialog, for Accept and Cancel?


Re: DIALOG_STYLE_MSGBOX - Mikep. - 28.03.2010

All you really need to do it

pawn Код:
if(reponse)
{
  // accept
}
else
{
  // cancel
}



Re: DIALOG_STYLE_MSGBOX - ScottCFR - 28.03.2010

Juss checking, so i didn't fail, xD


Re: DIALOG_STYLE_MSGBOX - Mikep. - 29.03.2010

You could use switch(), but that's generally used for lots of cases.


Re: DIALOG_STYLE_MSGBOX - ScottCFR - 29.03.2010

OK, It all works but i get errors on this, Did i do this correct?

pawn Код:
if(gTeam[playerid] == TEAM_DRUGDEALER) || if(gTeam[playerid] == TEAM_CIVIL)



Re: DIALOG_STYLE_MSGBOX - Mikep. - 29.03.2010

pawn Код:
if(gTeam[playerid] == TEAM_DRUGDEALER || gTeam[playerid] == TEAM_CIVIL)