03.01.2009, 17:24
Quote:
Originally Posted by °ғαιιοцт°
the textdraw thing is fixed, but is the timer wrong? (i don't think it is, because i used SetTimerEx with "playerid")
|
For example this will happen:
- Player 1 Dies, Value of CountDownTimer set to '1'
- Within 6 seconds, Player 2 dies, CountDownTimer will be set to '2' since the first timer is not killed/finished yet
- The 6 seconds are over for Player 1, CountDownTimer (which has value '2' now, gets killed).
- There timer for the first player will never stop, and player 2 will not spawn again since his/her timer is killed
To solve, you have to make a CountDownTimer-vaiable for every player:
Code:
new CountDownTimer[MAX_PLAYERS];