Forum

> > CS2D > General > Saving Data of Players
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Saving Data of Players

21 replies
Page
To the start Previous 1 2 Next To the start

old Re: Saving Data of Players

Mora
User Playing CS2D

Quote
As i said inb4 it your should require both to save at first time.
But if you once and firstly joined with usgn it might be
1
2
3
4
PLAYERS[usgn]={
steamid=id,
data={...}
}

old Re: Saving Data of Players

Gaios
Reviewer Off Offline

Quote
What you want to do?
Just save files like steamid-usgnid.txt and that's all. And then try to do something with
string.find
and
io.enumdir
. It's slow but works (this won't have a real impact though).

Additionally you can save 2 files as steamid.txt and usgnid.txt.

And inside of each file type last known usgnid and steamid.
To the start Previous 1 2 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview