Forum

> > CS2D > General > Saving Data of Players
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Saving Data of Players

21 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: Saving Data of Players

Mora
User Off Offline

Zitieren
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={...}
}

alt Re: Saving Data of Players

Gaios
Reviewer Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht