11.05.2015, 10:33
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.
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; }