Need Help - Spectate Textdraws
#3

TextDraws do not get updated automatically.You must manually the set the string every second.

Use SetTimer/SetTimerEx to create a timer which will update the textdraws every second.Or you can use OnPlayerUpdate to update the textdraws.

Код:
public OnPlayerUpdate()
{
      if(PlayerBeingSpeced[playerid] && (GetTickCount() - PreviousPlayerTick[playerid] > 1000)
      {
            PreviousPlayerTick[playerid] = GetTickCount();
            //Update all your textdraws here
      }
      return 1;
}
Reply


Messages In This Thread
Need Help - Spectate Textdraws - by Vaishnav - 11.05.2015, 08:43
Re: Need Help - Spectate Textdraws - by Crystallize - 11.05.2015, 10:09
Re: Need Help - Spectate Textdraws - by Yashas - 11.05.2015, 10:33
Re: Need Help - Spectate Textdraws - by Vaishnav - 11.05.2015, 10:43
Re: Need Help - Spectate Textdraws - by Vaishnav - 11.05.2015, 14:00
Re: Need Help - Spectate Textdraws - by Vaishnav - 12.05.2015, 02:57

Forum Jump:


Users browsing this thread: 1 Guest(s)