SA-MP Forums Archive
[HELP] Hour Problem - 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: [HELP] Hour Problem (/showthread.php?tid=166937)



[HELP] Hour Problem - LasTRace - 10.08.2010

pawn Код:
public Time2(playerid)
{
    new Hour[MAX_PLAYERS],Minute[MAX_PLAYERS],Second[MAX_PLAYERS];
    gettime(Hour[playerid],Minute[playerid],Second[playerid]);
    new string[128];
    format(string, sizeof(string), "%d:%d:%d", Hour[playerid],Minute[playerid],Second[playerid]);
    TextDrawSetString(Textdraw1[playerid],string);

return 1;
}
It might show all of players' own pc hour personally. But it always shows ID:0's hour for everyone. How to fix?