Question about vars.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question about vars.. (
/showthread.php?tid=182265)
Question about vars.. -
The_Moddler - 09.10.2010
What is better/faster
pawn Код:
enum pVar
{
Skill,
Score,
//etc...
}
new pInfo[pVar][MAX_PLAYERS]
OR..
pawn Код:
new Skill[MAX_PLAYERS];
new Score[MAX_PLAYERS];
//etc...
Thanks
Re: Question about vars.. -
Burridge - 09.10.2010
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!
Re: Question about vars.. -
WillyP - 09.10.2010
pVars are slower than normal variables, but i use normal variabes because their shorter and easier (in my eyes) to use xd
Re: Question about vars.. -
The_Moddler - 09.10.2010
Quote:
Originally Posted by [FU]Victious
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..
Re: Question about vars.. -
Voldemort - 09.10.2010
They are same, how many peoples so many answers
Re: Question about vars.. -
WillyP - 09.10.2010
Quote:
Originally Posted by Voldemort
They are same, how many peoples so many answers
|
Theres a topic that proves that normal variables are faster than pVars
Re: Question about vars.. -
Voldemort - 09.10.2010
Quote:
Originally Posted by [FU]Victious
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.
Re: Question about vars.. -
Burridge - 10.10.2010
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.
Re: Question about vars.. -
The_Moddler - 10.10.2010
Anyway, I think that they are the same (main post).