22.02.2011, 14:49
Quote:
Should be somewhat like this :
pawn Код:
|
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;
}