Efficient or NO?
#1

Hello guys, me again... .... I was wondering, I have this enum:

Код:
enum PlayerData
{
        Weapon0,
	Weapon1,
	Weapon2,
	Weapon3,
	Weapon4,
	Weapon5,
	Weapon6,
	Weapon7,
	Weapon8,
	Weapon9,
	Weapon10,
	Weapon11,
}
If i want to save the data there, if i do this:

Код:
new string[128];
for(new I = 0; I<12; I++)
{
     format(string,sizeof(string),"Weapon%",I);
     dini_IntSet(FNAME,string,PlayerData[playerid][string])
}
Is it better, worse, or the same than this:

Код:
dini_IntSet(FNAME,"Weapon0",PlayerData[playerid][Weapon0])
dini_IntSet(FNAME,"Weapon1",PlayerData[playerid][Weapon1])
dini_IntSet(FNAME,"Weapon2",PlayerData[playerid][Weapon2])
dini_IntSet(FNAME,"Weapon3",PlayerData[playerid][Weapon3])
?

Reply


Messages In This Thread
Efficient or NO? - by almighty - 01.11.2010, 17:45
Re: Efficient or NO? - by Kwarde - 01.11.2010, 17:52
Respuesta: Efficient or NO? - by almighty - 01.11.2010, 18:14
Re: Efficient or NO? - by The_Moddler - 01.11.2010, 18:14
Re: Efficient or NO? - by Finn - 01.11.2010, 18:52
Re: Efficient or NO? - by The_Moddler - 01.11.2010, 19:12
Re: Efficient or NO? - by Finn - 01.11.2010, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)