Dialog popping up
#7

Quote:
Originally Posted by maramizo
Посмотреть сообщение
Should be somewhat like this :
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(!response) return SendClientMessage(playerid, 0xFFFFFFFF, "You canceled!"); Kick(playerid);
        if (response == 1)
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "You agreed to the terms");
            PublicCallBackHere(playerid); // Should be something like this
            return 1;
    }
    return 0;
}
Finaly I managed to bypass the s***...

and can you tell me why doesn't my timer delay function?
pawn Код:
public ShowVideo(playerid)
{
    if(PlayerStep[playerid] == 1)
    {
        TextDrawShowForPlayer(playerid, Textdraw5);
        TextDrawShowForPlayer(playerid, Textdraw101);
        TextDrawShowForPlayer(playerid, Textdraw101);
        TextDrawShowForPlayer(playerid, Textdraw102);
        TextDrawShowForPlayer(playerid, Textdraw103);
        TextDrawShowForPlayer(playerid, Textdraw104);
        TextDrawShowForPlayer(playerid, Textdraw105);
        TextDrawShowForPlayer(playerid, Textdraw106);
        TextDrawShowForPlayer(playerid, Textdraw107);
        PlayerStep[playerid] = 2;
        ShowVideo(playerid);
        SetTimerEx("PlayerStep", 10000, false, "i", playerid);
        return true;
    }
    else if(PlayerStep[playerid] == 2)
    {
        ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_INPUT,"Dobrodoљao, Molimo te da se Registriraљ","Napiљi lozinku da bi se Registrirao.","Registriraj","Napusti");
    }
    return 1;
}
timer suppose to delay PlayerStep 2 from initiating.. but it keeps failing
Reply


Messages In This Thread
Dialog popping up - by 77ther - 22.02.2011, 13:16
AW: Dialog popping up - by Nero_3D - 22.02.2011, 13:59
Re: AW: Dialog popping up - by 77ther - 22.02.2011, 14:18
Re: Dialog popping up - by maramizo - 22.02.2011, 14:27
Re: Dialog popping up - by 77ther - 22.02.2011, 14:28
Re: Dialog popping up - by maramizo - 22.02.2011, 14:33
Re: Dialog popping up - by 77ther - 22.02.2011, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)