Hey. Was trying to add the ability to save and load custom variables for players in triggerhappy's CodeGenerator, but can't find a way to do it...
example.
-save-
Set SaveCount = [SaveCount + 1]
Set Save[SaveCount] = test
-load-
Set LoadCount =[LoadCount + 1]
Set test = Load[LoadCount]
the variable test turns into 1 no matter what it was before... so I think the save part is wrong, or maybe the load part, or both. I don't know what I did that screwed it up.
edit: btw, the variable test is an integer.
example.
-save-
Set SaveCount = [SaveCount + 1]
Set Save[SaveCount] = test
-load-
Set LoadCount =[LoadCount + 1]
Set test = Load[LoadCount]
the variable test turns into 1 no matter what it was before... so I think the save part is wrong, or maybe the load part, or both. I don't know what I did that screwed it up.
edit: btw, the variable test is an integer.