textdraw bug
#6

Hello !

First you should replace your VClock function, i haven't tested but it shouldn't change of what you currently use.

pawn Код:
forward VClock(playerid);
public VClock(playerid)
{
    Vminute++;
    if(Vminute >= 60)
    {
        Vminute = 0;
        Vhour++;
        if(Vhour >= 24)
        {
            Vhour = 0;
            SetWorldTime(Vhour);
        }
    }
   
    new string[20];
    format(string,sizeof(string),"%d:%.02d %s",Vhour,Vminute,(Vhour >= 12) ? ("PM") : ("AM"));
    TextDrawSetString(VClockTD,string);
    return 1;
}

For the bug, you should check if there isn't a "ToggleVClock(toggle)" in the public OnPlayerConnect(playerid).
Reply


Messages In This Thread
textdraw bug - by stix - 23.12.2010, 00:22
Re: textdraw bug - by Steven82 - 23.12.2010, 00:55
Re: textdraw bug - by stix - 23.12.2010, 00:58
Re: textdraw bug - by Steven82 - 23.12.2010, 00:59
Re: textdraw bug - by stix - 23.12.2010, 01:40
Re: textdraw bug - by Alice[WS] - 23.12.2010, 01:42
Re: textdraw bug - by stix - 23.12.2010, 02:05
Re: textdraw bug - by Alice[WS] - 23.12.2010, 02:26
Re: textdraw bug - by stix - 23.12.2010, 02:34
Re: textdraw bug - by Alice[WS] - 23.12.2010, 03:16

Forum Jump:


Users browsing this thread: 1 Guest(s)