26.11.2012, 19:53
Perdуn Daniel-92 tiene razуn aqui el test correcto:
Un saludo.
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;
}