Help with command speed test
#1

Ok, so I wanted to clock two similar commands I made, each one doing the same thing but in different ways, I used:
Код:
CMD:command(playerid, params[])
{
    new start = GetTickCount();
    for(new z; z < 1000; z++)
    {
       // the command code here
    }
    new end = GetTickCount();
    printf("Time: %04d", end - start);
    return 1;
}
However, when I test the command out it loops only twice then sends "Server Unknown Command", also nothing shows up in the console. Can any one help me out plz?
Reply
#2

Check your returns inside the loop
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)