[Include] BTXT - Fast and Easy Text Processor
#8

This doesn't even work?

TIMING FOR STRCMP:
Код:
TIME: 1059 BOOYAKA: 1000000
TIMING FOR BTXT:
Booyaka is zero, which means the whole function wasn't even called.
Код:
TIME: 44 BOOYAKA: 0
Here's my testing script:
pawn Код:
#include <a_samp>
new booyakabooyaka;

#include <btxt>
TEXT:hello(playerid, params[])
{
    booyakabooyaka++;
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}


/*public OnPlayerText(playerid, text[])
{
    if(!strcmp("hello", text, true))
    {
        booyakabooyaka++;
    }
    return 1;
}*/



main()
{
    print("\n----------------------------------");
    print("  Bare Script\n");
    print("----------------------------------\n");
    return 1;
}

public OnGameModeInit()
{
    new check1 = GetTickCount();

    for(new i; i < 1000000; i++)
    {
        OnPlayerText(0, "hello");
    }

    new check2 = GetTickCount();

    printf("TIME: %d BOOYAKA: %d", check2-check1, booyakabooyaka);
    return 1;
}
Reply


Messages In This Thread
BTXT - Fast and Easy Text Processor - by BigETI - 21.11.2011, 16:43
Re: BTXT - Fast and Easy Text Processor - by Speed - 21.11.2011, 16:44
Re: BTXT - Fast and Easy Text Processor - by fiki574 - 21.11.2011, 16:45
Re: BTXT - Fast and Easy Text Processor - by FireCat - 21.11.2011, 16:51
AW: Re: BTXT - Fast and Easy Text Processor - by BigETI - 21.11.2011, 16:52
Re: BTXT - Fast and Easy Text Processor - by System64 - 21.11.2011, 16:59
AW: BTXT - Fast and Easy Text Processor - by BigETI - 21.11.2011, 17:07
Re: BTXT - Fast and Easy Text Processor - by Finn - 21.11.2011, 17:20
AW: Re: BTXT - Fast and Easy Text Processor - by BigETI - 21.11.2011, 17:24
Re: AW: Re: BTXT - Fast and Easy Text Processor - by FireCat - 21.11.2011, 17:29
Re: AW: Re: BTXT - Fast and Easy Text Processor - by Finn - 22.11.2011, 15:00
Re: AW: Re: BTXT - Fast and Easy Text Processor - by KoczkaHUN - 22.11.2011, 15:35
Re: BTXT - Fast and Easy Text Processor - by TheArcher - 22.11.2011, 15:44
Re: BTXT - Fast and Easy Text Processor - by marwan - 22.11.2011, 15:52
Re: AW: Re: BTXT - Fast and Easy Text Processor - by Finn - 23.11.2011, 08:12
Re: BTXT - Fast and Easy Text Processor - by Biesmen - 23.11.2011, 09:37
Re: BTXT - Fast and Easy Text Processor - by System64 - 23.11.2011, 11:57
Re: AW: Re: BTXT - Fast and Easy Text Processor - by wups - 23.11.2011, 12:24
AW: Re: BTXT - Fast and Easy Text Processor - by BigETI - 23.11.2011, 12:40
Re: AW: Re: BTXT - Fast and Easy Text Processor - by Finn - 23.11.2011, 13:08
Re: BTXT - Fast and Easy Text Processor - by AndreT - 23.11.2011, 13:15
Re: BTXT - Fast and Easy Text Processor - by Finn - 23.11.2011, 13:27
Re: BTXT - Fast and Easy Text Processor - by Biesmen - 23.11.2011, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)