Dialog help
#2

Try this:

pawn Код:
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Gender","You're Male or Female?","Male","Female");

//OnDialogResponse
if (dialogid == 3)
    {
        if(response == 0)
        {
        SendClientMessage(playerid,FARBE_GELB2, "you are male!");
        dini_IntSet(accFormat,"sex",Player[playerid][sex]=0);
        SpawnPlayer(playerid);
        }
        if(response)
        {
        SendClientMessage(playerid,FARBE_GELB2, "you are female!");
        dini_IntSet(accFormat,"Sex",Player[playerid][Sex]=1);
        SpawnPlayer(playerid);
        }
        return 1;
    }
Reply


Messages In This Thread
Dialog help - by Cedricn - 24.10.2010, 14:40
Re: Dialog help - by HyperZ - 24.10.2010, 14:50
Re: Dialog help - by Cedricn - 24.10.2010, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)