Register Quiz
#4

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new rand = random(50);
    switch (dialogid)
    {
        case 1: // Register
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        SendClientMessage(playerid,-1,"Wrong answer! Try again!");
                        //bla bla bla
                    }
                    case 1:
                    {
                        SendClientMessage(playerid, -1, "Correct! Here's the next question...");
                        ShowPlayerDialog(playerid, rand, bla bla bla);
                        Quizlevel = ++;
                    }

                }
            }
        }
    }
    return 1;
}
Hope this helps.
Reply


Messages In This Thread
Register Quiz - by antonio112 - 22.09.2012, 04:53
Re: Register Quiz - by JhnzRep - 22.09.2012, 04:56
Re: Register Quiz - by antonio112 - 22.09.2012, 05:24
Re: Register Quiz - by JhnzRep - 22.09.2012, 05:47
Re: Register Quiz - by antonio112 - 22.09.2012, 05:56
Re: Register Quiz - by JhnzRep - 22.09.2012, 06:07
Re: Register Quiz - by antonio112 - 22.09.2012, 06:43
Re: Register Quiz - by antonio112 - 22.09.2012, 17:00
Re: Register Quiz - by Vince - 22.09.2012, 17:32
Re: Register Quiz - by antonio112 - 12.10.2012, 21:20

Forum Jump:


Users browsing this thread: 1 Guest(s)