21.01.2017, 23:05
(
Последний раз редактировалось danielpalade; 25.09.2017 в 22:00.
)
-- DELETED --
TextDrawDestroy(//nameoftextdraw) // or if it's a per player textdraw PlayerTextDrawDestroy(//nameoftextdraw)
|
The problem is that there's no timer for the textdraws to disappear. So it has to be done manually;
Use Код:
TextDrawDestroy(//nameoftextdraw) // or if it's a per player textdraw PlayerTextDrawDestroy(//nameoftextdraw) It is recommended that you use a timer to destroy text draws at a certain time, unless you want it to be done manually. |
new Get[6];
gettime(Get[3],Get[4],Get[5]);
getdate(Get[0],Get[1],Get[2]);
printf("clock");
for(new i; i < MAX_PLAYERS; i++)
{
TextDrawDestroy(DateHUD);
format(szMessage, sizeof(szMessage) , "%02d.%02d.%02d" , Get[ 2 ] , Get[ 1 ] , Get[ 0 ] );
TextDrawSetString(DateHUD, szMessage);
TextDrawShowForPlayer(i, DateHUD);
TextDrawDestroy(TimeHUD);
format(szMessage, sizeof(szMessage), "%02d:%02d", Get[3],Get[4]);
TextDrawSetString(TimeHUD, szMessage);
TextDrawShowForPlayer(i, TimeHUD);
}