SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Help Archive (https://forum.sa-mp.com/forumdisplay.php?f=89)
-   -   Question about vars.. (https://forum.sa-mp.com/showthread.php?t=182265)

The_Moddler 09/10/2010 09:40 PM

Question about vars..
 
What is better/faster

pawn Code:
enum pVar
{
    Skill,
    Score,
   //etc...
}
new pInfo[pVar][MAX_PLAYERS]

OR..

pawn Code:
new Skill[MAX_PLAYERS];
new Score[MAX_PLAYERS];
//etc...

Thanks

Burridge 09/10/2010 09:41 PM

Re: Question about vars..
 
I don't think either are faster than the other. (I ain't sure) However, I suggest using PVars, as they may be slower, but a lot more optimized! :)

WillyP 09/10/2010 09:53 PM

Re: Question about vars..
 
pVars are slower than normal variables, but i use normal variabes because their shorter and easier (in my eyes) to use xd

The_Moddler 09/10/2010 09:55 PM

Re: Question about vars..
 
Quote:

Originally Posted by [FU]Victious (Post 867305)
pVars are slower than normal variables, but i use normal variabes because their shorter and easier (in my eyes) to use xd

Yep, I like normal variables too, because they are shorter :P

Still, wich one is best?

I think they are the same..

Voldemort 09/10/2010 09:56 PM

Re: Question about vars..
 
They are same, how many peoples so many answers

WillyP 09/10/2010 10:00 PM

Re: Question about vars..
 
Quote:

Originally Posted by Voldemort (Post 867308)
They are same, how many peoples so many answers

Theres a topic that proves that normal variables are faster than pVars

Voldemort 09/10/2010 10:03 PM

Re: Question about vars..
 
Quote:

Originally Posted by [FU]Victious (Post 867314)
Theres a topic that proves that normal variables are faster than pVars

We talk about who is best not faster, so here everyone will suggest that what they use.

Burridge 10/10/2010 08:40 AM

Re: Question about vars..
 
You all went off topic. Read his main post. He didn't say anything about the PVar system. I simply mentioned it as a more optimized alternative.

The_Moddler 10/10/2010 12:52 PM

Re: Question about vars..
 
Anyway, I think that they are the same (main post).


All times are GMT. The time now is 10:13 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.