How to make more efficient
#1

So I have this:

pawn Код:
enum wInfo
{
    WantedZone,
    WantedTime
};
new WantedInfo[MAX_PLAYERS][MAX_PLAYERS[wInfo];
pawn Код:
WantedInfo[playerid][i][WantedZone] = GangZone();
I really don't think an array with that much data is really efficient and it could be slowing down some stuff.

Although I could do
pawn Код:
new string[128];
format(string, 128, "zone_%d", i);
SetPVarInt(playerid, string, GangZone());
But, I dont know if that is quite efficient and I would need to format the string everytime I loop through a player to check if the gangzone exists.

Any other ideas or methods?

Thanks.
Reply


Messages In This Thread
How to make more efficient - by s1k - 29.03.2011, 19:00
Re: How to make more efficient - by Miguel - 29.03.2011, 19:02
Re: How to make more efficient - by Jochemd - 29.03.2011, 19:04
Re: How to make more efficient - by iggy1 - 29.03.2011, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)