Can't convert time normally..
#2

I fking give up >,<

pawn Код:
new RTime,timestamp;
    timestamp = GetTickCount();
    if (RaceTick != 0)
        RTime = timestamp - RaceTick;
    else
        RTime=0;

    new Min,Sec,MS;
    ConvertTime2(RTime, Min, Sec, MS);
    gindex=0;
    while (Sec > 9)
    {
    Sec-=10;
    gindex++;
    }
    new str[64];
    if(RaceStarted == 1)
    {
        format(str,sizeof(str),"%02d:%d%d",Min,gindex,Sec);
        for(new i=0; i<MAX_SLOTS; i++)
        {
            if(PlayerI[i][InRace] == 1)
            {
                SendClientMessage(i,COLOR_WHITE,str);
            }
        }
    }
We tried over 30 different solutions the code is from ADRENALINE it self and now all it does it Jumps mostly at 6sec, its like: 1..2...3...4...5...7...8...9...10...11...13 and I DONT KNOW WTF IS WRONG? The code is the same for 30times only with different styles neither any of my friends can understand this, i mean come ooon what the heck could be wrong with this, with adrenaline gamemode it works FINE, i double triple x100000 checked it and copied the code but it DOESN'T WORK!
Reply


Messages In This Thread
Can't convert time normally.. - by 0ne - 06.12.2010, 17:11
Re: Can't convert time normally.. - by 0ne - 07.12.2010, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)