Strange problem with GameTextForPlayer
#1

I have a strange problem with gametextforplayer.
When i set the time. doesn't matter if i put 100 ms or 1000ms but it will last for about 10 seconds.
What is causing this?
Im using it in a countdown timer.

code:
PHP код:
public CharacterSelectionDelayTimer(playerid)
{
    new 
str[75];
    if(
CSDTseconds[playerid] >= 1)
    {
        
CSDTseconds[playerid]--;
        
format(strsizeof(str), "~w~Changing character in  ~g~ %d ~w~ seconds."CSDTseconds[playerid]);
         
GameTextForPlayer(playeridstr10001);
    } else {
        
KillTimer(CSDTtimer[playerid]);
        
CSDTtimer2[playerid] = 1;
        
SelectCharacterProceed(playeridCHARID[playerid]);
    }

The problem is not related to the timer but to gametextforplayer because CSDTseconds[playerid] gets updated every second
Reply


Messages In This Thread
Strange problem with GameTextForPlayer - by jasperschellekens - 19.04.2018, 16:52
Re: Strange problem with GameTextForPlayer - by UFF - 19.04.2018, 17:01
Re: Strange problem with GameTextForPlayer - by FailerZ - 19.04.2018, 18:03

Forum Jump:


Users browsing this thread: 2 Guest(s)