Help ME! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help ME! (
/showthread.php?tid=334915)
Help ME! -
ColdRain - 16.04.2012
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;
}
Re: Help ME! -
Cjgogo - 16.04.2012
Well,as far as I see you're not updating the weather,and are you actually trying to display the clock?Use the function
Re: Help ME! -
DarkB0y - 16.04.2012
try this one