20.12.2010, 18:13
i got a real life time
and i dont mean the time in game is the time is where the server is being hosted at
i want that each time the server restart it sets the time to 6 am and each 30 seconds IG is 1 min IRL
so i did it
but i cant fix the clock, it gets my real life time and shows it in the textdraw instead game time
so how to fix
heres the FS:
public UpdateTime()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Hour, Min;
gettime(Hour,Min);
new string[16];
format(string, sizeof(string), "%02d:%02d", Hour, Min);
SetPlayerTime(i, Hour, Min);
TextDrawSetString(Clock[i], string);
}
return 1;
}
and i dont mean the time in game is the time is where the server is being hosted at
i want that each time the server restart it sets the time to 6 am and each 30 seconds IG is 1 min IRL
so i did it
but i cant fix the clock, it gets my real life time and shows it in the textdraw instead game time
so how to fix
heres the FS:
public UpdateTime()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Hour, Min;
gettime(Hour,Min);
new string[16];
format(string, sizeof(string), "%02d:%02d", Hour, Min);
SetPlayerTime(i, Hour, Min);
TextDrawSetString(Clock[i], string);
}
return 1;
}