Support Board
Date/Time: Sat, 28 Dec 2024 09:40:59 +0000
Post From: Referencing to Persistent Variable by name NOT working *URGENT*
[2016-02-22 10:06:37] |
User972044 - Posts: 154 |
I already tried if(sc.Index = 0){} several times with SetPersistentInt() or setting the variable_name = 0; Neither methods work. It just gives me a different random number, 87514 this time instead of 0. I want to set the variable_name to 0 the first time around and it just does NOT. When I don't use the SetPersistentInt() to set the number and just the GetPersistentInt(), it gives a random number 127XXX and when I use the if(sc.Index == 0) condition, it just gives me a random number starting 87XXX instead of setting the variable_name to a value that I want. There is something seriously wrong with Persistent variable pointers it seems either that or the index value is not being aligned. Thanks Date Time Of Last Edit: 2016-02-22 10:23:43
|