What am I doing wrong?!
#1

Short explanation:
I'm creating a little "video" made of several textdraws, and I would like those textdraws to switch after some seconds, but I keep failing on that,
For now I created only 1 textdraw and I would like to delay register dialog from popping up, but somehow I can't..

pawn Код:
else 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] = SetTimerEx("PlayerStep", 25000, false, "i", playerid);
                    PlayerStep[playerid] = 2;

                    if (PlayerStep[playerid] == 2)
                    {
                        ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_INPUT,"Dobrodoљao, Molimo vas da se Registrirate","Napiљite lozinku da bi se Registrirali.","Registriraj","Napusti");
                    }
                }
Reply
#2

put your textdraws
Reply
#3

You'll need to add a return after you've set the timer, to prevent the code from executing the if statement that's below it.
Reply
#4

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
put your textdraws
textdraws show correctly, I can't set timer to delay register dialog from popping up..
Reply
#5

I've done this and now it doesn't show at all
pawn Код:
else 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] = SetTimerEx("PlayerStep", 5000, false, "i", playerid);
                    PlayerStep[playerid] = 2;
                    return 1;
                }
                else if (PlayerStep[playerid] == 2)
                {
                        ShowPlayerDialog(playerid, 1246, DIALOG_STYLE_INPUT,"Dobrodoљao, Molimo vas da se Registrirate","Napiљite lozinku da bi se Registrirali.","Registriraj","Napusti");
                }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)