Timer Problem
#1

https://imgur.com/a/gS9I5

the waiting to rolling text wont dissapear and the roulette wont start, here's the timer

Код:
public OneSecTimer( )
{
		foreach(new i:Player)
		{
	        if(RouletteInGame[i] == 1)
	        {
	                new newtext[24];
	                format(newtext, sizeof(newtext), "Balance: %d", GetPlayerMoney(i));
	                PlayerTextDrawSetString(i,CasinoDrawPlayer[i][0], newtext);
	        }
		}
		if(RouletteTime2 >= 1 && RouletteStatus == 1) RouletteTime2 --;
		if(RouletteTime == 0 && RouletteStatus == 0) TextDrawSetString(CasinoDraw[11], "Waiting to rolling..."),RouletteStatus = 1,RouletteTime2 = 11,playtime = SetTimer("RouletteGame1", 1000, true);
		if(RouletteTime >= 1)
		{
	        RouletteTime --;
	        if(TotalBet == 0) return TextDrawSetString(CasinoDraw[11], "Waiting for bets..."),RouletteTime = 20;
	        new newtextt[24];
	        format(newtextt, sizeof(newtextt), "ROUND STARTS IN: 00:%d", RouletteTime);
	        TextDrawSetString(CasinoDraw[11], newtextt);
		}
		return 1;
}
Reply


Messages In This Thread
Timer Problem - by enzulikeS - 06.03.2018, 13:49
Re: Timer Problem - by PepsiCola23 - 06.03.2018, 14:10
Re: Timer Problem - by enzulikeS - 06.03.2018, 14:53
Re: Timer Problem - by PepsiCola23 - 06.03.2018, 15:03
Re: Timer Problem - by enzulikeS - 06.03.2018, 16:00
Re: Timer Problem - by v1k1nG - 07.03.2018, 01:37
Re: Timer Problem - by enzulikeS - 07.03.2018, 12:12

Forum Jump:


Users browsing this thread: 1 Guest(s)