Best player data saving method - 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: Best player data saving method (
/showthread.php?tid=129717)
Best player data saving method -
ziomal432 - 23.02.2010
I mean saving data in server's RAM, without saving in file. I know currently 2 methods:
- normal
Code:
new pXXX[MAX_PLAYERS];
pXXX[playerid] = 62;
- enum
Code:
enum E_PLAYERS
{
pXXX
};
new PlayerData[MAX_PLAYERS][E_PLAYERS];
PlayerData[playerid][pXXX] = 62;
Do you know some another faster methods?
Re: Best player data saving method -
ziomal432 - 23.02.2010
Refresh.
Re: Best player data saving method -
ziomal432 - 24.02.2010
Refresh. Please answer.
Re: Best player data saving method -
BlackFoX - 24.02.2010
The Method with Enums is much better i think, i hate it do create 50 Variables like this
Code:
new bla[MAX_PLAYERS];
new bla0[MAX_PLAYERS];
new bla1[MAX_PLAYERS];
And if i want Change something i know where it is and where i can find it