Display time not working
#5

pawn Код:
//GM top
new Servt;

//OnGameModeInit
for(new i=0; i<MAX_PLAYERS; i++)
{
    Servt = TextDrawCreate(545, 31, "00:00");
    TextDrawColor(Servt, COLOR_WHITE);
}

forward TimeU();
public TimeU()
{
    new hr,min,sec,string[10];
    gettime(hr,min,sec);
    #pragma unused sec
    format(string, 10,"%02d:%02d",hr,min);
    TextDrawSetString(Servt,string);
}

//onplayerconnect
TextDrawShowForPlayer(playerid, Servt);

//onplayerdisconnect
TextDrawHideForPlayer(playerid, Servt);
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)