pvar vs playerinfo[][]
#4

The big advantage of regular Arrays with Enums is speed. If you have data that is constantly in use and accessed very often it may be better to use an Array, however PVars aren't slow either so this will probably only come into mind with many players and very frequently used data.

I personally find Arrays more convenient though. You can directly perform operations on them, copy them etc.

Also Arrays can be bulk-saved so you could make an Array for stored Player Data and save and load it as-is. With PVars you'd need to save each value by name (or its Index).
Reply


Messages In This Thread
pvar vs playerinfo[][] - by C0mBat1ve - 20.04.2018, 03:31
Re: pvar vs playerinfo[][] - by Kane - 20.04.2018, 04:00
Re: pvar vs playerinfo[][] - by C0mBat1ve - 20.04.2018, 10:26
Re: pvar vs playerinfo[][] - by NaS - 20.04.2018, 12:40
Re: pvar vs playerinfo[][] - by iKarim - 20.04.2018, 12:44
Re: pvar vs playerinfo[][] - by C0mBat1ve - 21.04.2018, 02:43

Forum Jump:


Users browsing this thread: 1 Guest(s)