Display time not working
#6

Well, but i don't see how this is NOT working ( OnPlayer Connect and Disconnect is added, thank you )
And...
I am using the server-sided time for end round , so yeah.
Код:
public TimeU()
{
new string[128];
Tsec+=1;
if(Tsec==60)
{
Tsec=00;
THrs+=1;
}
if(THrs==24)
{
Tsec=00;
THrs=0;
}
if(Tsec<10)
{
format(string,sizeof(string),"%d:%d0",THrs,Tsec);


}
if(Tsec>10)
{
format(string,sizeof(string),"%d:%d",THrs,Tsec);


}
if(THrs<10)
{
format(string,sizeof(string),"0%d:%d",THrs,Tsec);


}
for(new i = 0; i < MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i)) {
        SetPlayerTime(i,THrs,Tsec);
        Servt=TextDrawCreate(545, 31, "00:00");
        TextDrawColor(Servt, COLOR_WHITE);
        }
        }
TextDrawSetString(Servt,string);
if(THrs==23 && Tsec==59)
{
SendClientMessageToAll(COLOR_LIGHTBLUE,"Round Of The Day Ended");
if(Gscore>Pscore)
{
SendClientMessageToAll(COLOR_LIGHTBLUE,"Winner Of Today's Round: Team Gangs.");
GameTextForAll("~bl~Team Gangs\nWins",4000,3);
}
if(Gscore<Pscore)
{
SendClientMessageToAll(COLOR_LIGHTBLUE,"Winner Of Today's Round: Team Police.");
GameTextForAll("~bl~Team Police\nWins",4000,3);
}
if(Gscore==Pscore)
{
SendClientMessageToAll(COLOR_LIGHTBLUE,"Winner of Today's Round: Nobody.");
GameTextForAll("~bl~Nobody\nWins",4000,3);
Edit:
Time is showing, but it is not moving.
Reply


Messages In This Thread
Display time not working - by [GOD]Dragonster82 - 02.10.2011, 07:10
Re: Display time not working - by Pharrel - 02.10.2011, 07:39
Re: Display time not working - by [GOD]Dragonster82 - 02.10.2011, 08:15
Re: Display time not working - by [MWR]Blood - 02.10.2011, 08:17
Re: Display time not working - by Pharrel - 02.10.2011, 08:39
Re: Display time not working - by [GOD]Dragonster82 - 02.10.2011, 09:22
Re: Display time not working - by [GOD]Dragonster82 - 02.10.2011, 10:15

Forum Jump:


Users browsing this thread: 1 Guest(s)