SA-MP Forums Archive
[lil' question] Set the time - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [lil' question] Set the time (/showthread.php?tid=84712)



[lil' question] Set the time - Marc_307 - 02.07.2009

Hi, if I want to Set the Time for all I use e.g.
pawn Код:
SetWorldTime(12);
. But this sets only the hours. What's if I want to set the minutes too? Do I use e.g.
pawn Код:
SetPlayerTime(-1,10,10);
?


Re: [lil' question] Set the time - refshal - 02.07.2009

I guess that you can't set the minutes with the SetWorldTime();
I know that it's a bit annoying, I have noticed it before.


Re: [lil' question] Set the time - Marc_307 - 02.07.2009

Yes, but what will happen if I use SetPlayerTime and instead of "playerid" I put in "-1" for all players?


Re: [lil' question] Set the time - refshal - 02.07.2009

Your Pawno would give you an error.


Re: [lil' question] Set the time - Marc_307 - 02.07.2009

No error, but could I use "for(new i=0;i<MAX_PLAYERS;i++)" ?


Re: [lil' question] Set the time - Marc_307 - 02.07.2009

OK, thanks.