[HELP] CountDown TextDraw Bugs
#1

NEVER FORGET USE PlayerTextDeawDestroy ON OnPlayerDisconnect !

Solved.
Reply
#2

For your second problem, you need to make a PLAYER TEXTDRAW for basis like this.
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw (Check Related Functions.)

For your first problem,

You don't need to hide and recreate the textdraw. Simply set the string as:
PHP код:
public UpdateMuteTime(playerid)
{
   if(
PlayerInfo[playerid][pMutedTime] < 1)
   {
        
KillTimer(MuteTime[playerid]);
        
PlayerInfo[playerid][pMuted] = 0;
        
PlayerInfo[playerid][pMutedTime] = 0;
        
PlayerTextDrawHide(playerid,MuteTimeTextDraw[playerid]);
        return 
1;
    }
   new 
timeString[32]; 
   
format(timeStringsizeof(timeString), "Mute:%02d:%02d"PlayerInfo[playerid[pMutedTime]/60PlayerInfo[playerid[pMutedTime]%60);
   
PlayerTextDrawSetString(playeridMuteTimeTextDraw[playerid], timeString);
   return 
1;

Reply
#3

I DIDNT DESTROY PLAYER'S TEXTDRAW WHEN PLAYER DISCONNECTED.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)