|
| 24 May 2016 12:19 PM |
I'm using data persistence to save numbers in variables.
How can i check if the variable exists?
Changed event works but I can't get it to verify if the variable actually exists, so it gives me error or doesn't work when i remove / add the variable. |
|
|
| Report Abuse |
|
|
|
| 24 May 2016 12:22 PM |
| Basically I use the Changed event to save the variable's number, but if the variable doesn't exist it will stop working regardless of the variable coming back later on. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 24 May 2016 12:31 PM |
Don't use data persistence.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 24 May 2016 12:34 PM |
| what should i use if i just want to save small numbers like 0-10 for each player? |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
|
| 24 May 2016 12:40 PM |
| ok and i still want to use changed. how do i check if the variable exists with changed? |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
|
| 24 May 2016 12:56 PM |
| how else can i save the number every time it changes? EVERY SINGLE TIME. |
|
|
| Report Abuse |
|
|