[Duda] Variables PVars
#8

Perdуn Daniel-92 tiene razуn aqui el test correcto:

pawn Код:
#include <a_samp>

#define MAX_TIME     (1000000)   //loops para teste

enum pData
{
  array,
};
new PlayerInfo[MAX_TIME][pData];

public OnFilterScriptInit()
{
    //==========================================================================

    new
        dCount = GetTickCount();

    for(new i; i < MAX_TIME; ++i)
    {
        PlayerInfo[i][array] = 1;
    }

    printf("[Array] Funciуn: %d - Tiempo: %d MS", MAX_TIME,(GetTickCount()  - dCount));

    //==========================================================================

    new
        bCount = GetTickCount();
    for(new i; i < MAX_TIME; ++i)
    {
        SetPVarInt(i, "array", 1);
    }
    printf("[PVars] Funciуn: %d - Tiempo: %d MS", MAX_TIME,(GetTickCount()  - bCount));

    //==========================================================================
    return true;
}
Un saludo.
Reply


Messages In This Thread
[Duda] Variables PVars - by oOFotherOo - 26.11.2012, 13:01
Respuesta: [Duda] Variables PVars - by TheChaoz - 26.11.2012, 13:42
Respuesta: [Duda] Variables PVars - by oOFotherOo - 26.11.2012, 14:07
Respuesta: [Duda] Variables PVars - by TheChaoz - 26.11.2012, 14:27
Respuesta: [Duda] Variables PVars - by oOFotherOo - 26.11.2012, 14:53
Respuesta: [Duda] Variables PVars - by Fluid016 - 26.11.2012, 15:49
Re: Respuesta: [Duda] Variables PVars - by Daniel-92 - 26.11.2012, 17:07
Respuesta: [Duda] Variables PVars - by oOFotherOo - 26.11.2012, 19:53
Re: [Duda] Variables PVars - by Daniel-92 - 27.11.2012, 00:37
Respuesta: [Duda] Variables PVars - by DesingMyCry - 27.11.2012, 01:32

Forum Jump:


Users browsing this thread: 2 Guest(s)