AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 05 Feb 2015 02:05 PM |
if datastore:GetAsync("PreviousSession") then
How would I check if the value of "PreviousSession" == true, and not just if it isn't nil? It saves like this:
datastore:SetAsync("PreviousSession", true) |
|
|
| Report Abuse |
|
|
AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
| |
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 05 Feb 2015 02:06 PM |
wrong subforum but ok
e.e why aren't you setting the key to the userId... it doesn't default check the localplayers datastores. |
|
|
| Report Abuse |
|
|
AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 05 Feb 2015 02:08 PM |
I'm using the datastore like this:
GetDataStore(Date..player.UserId)
It's a key in itself |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 05 Feb 2015 02:09 PM |
| Oh my god why are you making new datastores for every single player, if you need multiple things, save a table oh sweet jesus. |
|
|
| Report Abuse |
|
|
|
| 05 Feb 2015 02:11 PM |
Wrong forum Go to Scripters
Court is now in session! Exalted Judge Sir Carbine presiding. |
|
|
| Report Abuse |
|
|
AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 05 Feb 2015 02:13 PM |
| It saves data in tables, it's just using the DataStore name as a key... |
|
|
| Report Abuse |
|
|
AntiFiter
|
  |
| Joined: 14 May 2009 |
| Total Posts: 12290 |
|
|
| 05 Feb 2015 02:15 PM |
@SirCarbine
Did you really just post that |
|
|
| Report Abuse |
|
|