textdraw doesn't update
#3

Quote:
Originally Posted by Micko123
View Post
Show your
PHP Code:
public UpdateIphone() 
PHP Code:
public UpdateIphone()
{
    new 
HourMinute;
    
gettime(HourMinute);
    new 
str[64];
    
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);
    
TextDrawSetString(TD_iPhone[19], str);
    new 
YearMonthDay;
    
getdate(YearMonthDay);
    
format(str,sizeof(str),"%s, %02d %d",GetMonth(Month), DayYear);
    
TextDrawSetString(TD_iPhone[20], str);
    
TextDrawSetString(TD_iPhone_Clock[1], str);
    
ActualizarTiempo();
    return 
1;
}
stock ActualizarTiempo()
{
     new 
weather[64],idwea;
    
GetServerVarAsString("weather"weathersizeof(weather));
    
idwea strval(weather);
    if(
idwea >= && idwea <= 7TextDrawSetString(TD_iPhone_Time[0],"Sunny");
    else if(
idwea == 8TextDrawSetString(TD_iPhone_Time[0],"Stormy");
    else if(
idwea == 9TextDrawSetString(TD_iPhone_Time[0],"Fog");
    else if(
idwea == 10TextDrawSetString(TD_iPhone_Time[0],"Sunny");
    else if(
idwea == 11TextDrawSetString(TD_iPhone_Time[0],"Hot");
    else if(
idwea >= 12 && idwea <= 15TextDrawSetString(TD_iPhone_Time[0],"Aburro");
    else if(
idwea == 16TextDrawSetString(TD_iPhone_Time[0],"Rain");
    else if(
idwea >= 17 && idwea <= 18TextDrawSetString(TD_iPhone_Time[0],"Hot");
    else if(
idwea == 19TextDrawSetString(TD_iPhone_Time[0],"Sand");
    else if(
idwea == 20TextDrawSetString(TD_iPhone_Time[0],"Fog");
    else if(
idwea == 21TextDrawSetString(TD_iPhone_Time[0],"Very dark");
    else if(
idwea == 22TextDrawSetString(TD_iPhone_Time[0],"Very dark");
    else if(
idwea >= 23 && idwea <= 26TextDrawSetString(TD_iPhone_Time[0],"Orange");
    else if(
idwea >= 27 && idwea <= 29TextDrawSetString(TD_iPhone_Time[0],"Sunny");
    else if(
idwea >= 30 && idwea <= 32TextDrawSetString(TD_iPhone_Time[0],"Dark");
    else if(
idwea == 33TextDrawSetString(TD_iPhone_Time[0],"Dark");
    else if(
idwea == 34TextDrawSetString(TD_iPhone_Time[0],"Blue");
    else if(
idwea == 35TextDrawSetString(TD_iPhone_Time[0],"Marron");
    else if(
idwea >= 36 && idwea <= 38TextDrawSetString(TD_iPhone_Time[0],"Brillant");
    else if(
idwea == 39TextDrawSetString(TD_iPhone_Time[0],"Very brillant");
    else if(
idwea >= 40 && idwea <= 42TextDrawSetString(TD_iPhone_Time[0],"Blue/Purple");
    else if(
idwea == 43TextDrawSetString(TD_iPhone_Time[0],"Toxic");
    else if(
idwea == 44TextDrawSetString(TD_iPhone_Time[0],"Black");
    else if(
idwea == 45TextDrawSetString(TD_iPhone_Time[0],"Black");
    return 
1;

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: 2 Guest(s)