textdraw doesn't update
#12

Here you go...

Top of the script after includes:
PHP Code:
new UpdateIPHONETimer
OnGameModeInit:
PHP Code:
UpdateIphone();
UpdateIPHONETimer SetTimer("UpdateIphone"60000true); 
OnGameModeExit:
PHP Code:
KillTimer(UpdateIPHONETimer); 
UpdateIphone function:
PHP Code:
forward UpdateIphone();
public 
UpdateIphone() 

    new 
HourMinuteYearMonthDaystr[64];
    
gettime(HourMinute);
    
getdate(YearMonthDay);
    
format(str,sizeof(str),"4G________________%02d:%02d",Hour,Minute); 
    
TextDrawSetString(TD_iPhone[18], str); 
    
format(str,sizeof(str),"%02d:%02d",Hour,Minute); 
    
TextDrawSetString(TD_iPhone_Clock[0], str); 
    
format(str,sizeof(str),"%s, %02d %d",GetMonth(Month), DayYear); 
    
TextDrawSetString(TD_iPhone[20], str); 
    
ActualizarTiempo(); 
    return 
1

OPTIONAL
OnPlayerSpawn:
PHP Code:
UpdateIphone(); 
Reply


Messages In This Thread
textdraw doesn't update - by ImTouchk - 06.11.2016, 17:36
Re: textdraw doesn't update - by Micko123 - 06.11.2016, 17:41
Re: textdraw doesn't update - by ImTouchk - 06.11.2016, 18:28
Re: textdraw doesn't update - by Rdx - 06.11.2016, 18:44
Re: textdraw doesn't update - by Eoussama - 06.11.2016, 18:45
Re: textdraw doesn't update - by ImTouchk - 06.11.2016, 19:08
Re: textdraw doesn't update - by Micko123 - 06.11.2016, 20:09
Re: textdraw doesn't update - by Kaliber - 06.11.2016, 22:03
Re: textdraw doesn't update - by ImTouchk - 07.11.2016, 07:54
Re: textdraw doesn't update - by Logic_ - 07.11.2016, 07:57
Re: textdraw doesn't update - by ImTouchk - 07.11.2016, 08:15
Re: textdraw doesn't update - by Logic_ - 07.11.2016, 08:17

Forum Jump:


Users browsing this thread: 3 Guest(s)