06.03.2018, 13:49
https://imgur.com/a/gS9I5
the waiting to rolling text wont dissapear and the roulette wont start, here's the timer
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; }