|
| 03 Apr 2016 11:01 PM |
if i wanted to do:
ds = game:GetService("DataStoreService"):GetDataStore("Ranks")
ds:SetAsync(plr.UserId.." Rank", {Elo = 500, Rank = "Beginner})
would that work? or do i have to do
ds:SetAsync(plr.UserId.." RankElo", 500) etc etc |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
|
| 03 Apr 2016 11:15 PM |
| and i'd just do print(ds:GetAsync(plr.UserId.." Rank", Elo} >> 500 ? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
falsidge
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 456 |
|
|
| 04 Apr 2016 07:37 PM |
it would be more like this print(ds:GetAsync(plr.UserId.." Rank")["Elo"]) since GetAysnc will return the table |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Apr 2016 10:31 PM |
| wait do i have to do dsonencode or something ? |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2016 10:59 PM |
| bumppity bumppatoo bumppapee |
|
|
| Report Abuse |
|
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 05 Apr 2016 02:40 AM |
| It automaticly encodes/decodes. |
|
|
| Report Abuse |
|
|
|
| 05 Apr 2016 03:06 AM |
| what use do dsonencode/decode have? i haven't used them in a while |
|
|
| Report Abuse |
|
|
|
| 05 Apr 2016 05:16 AM |
| AFAIK it's useful for httpservice |
|
|
| Report Abuse |
|
|