Forum

> > CS2D > Scripts > Saving usgn/steam data
Forums overviewCS2D overview Scripts overviewLog in to reply

English Saving usgn/steam data

1 reply
To the start Previous 1 Next To the start

old Saving usgn/steam data

Forever Alone
User Off Offline

Quote
ATM im saving only with USGN but i want to save both classes

How to save both USGN and Steam users? Im using SALT right now like this:
1
salt.save(playerdata[id],"/sys/lua/saves/"..player(id,"usgn")..".lua")
but it wont save users w/o usgn, but when ill save like this
1
salt.save(playerdata[id],"/sys/lua/saves/"..player(id,"steamid")..".lua")
it wont save USGN players.

I thinked about detecting players platform(for eg. player(id,"steamid") returns 0 if theres no steam) but what if they will have USGN and i want to save their game on both profiles?

is there any better options then detecting platform? waiting for non-troll responses
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview