Help ME!
#1

But its not work please help! its not give right time its like when i enter the time is 12:00 then it go 24:00 then 10:00 like its random time!


pawn Код:
forward UpdateTimeAndWeather(playerid);



public UpdateTimeAndWeather(playerid)
{
    // Update time
    new hour=12;
        new minute=0;
    SetPlayerTime(playerid,hour,minute);
    minute++;
   
    if(minute == 60){
    minute =0;
    hour+=1;
    }
   
    if(hour == 24){
    minute =0;
    hour=0;
        }
return 1;
}
Reply
#2

Well,as far as I see you're not updating the weather,and are you actually trying to display the clock?Use the function
pawn Код:
TogglePlayerClock
Reply
#3

try this one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)