Blockland Forums > Help
Variable saving and loading
jes00:
--- Quote from: Dragonoid-X on August 22, 2011, 02:04:48 PM ---Savevariable and Loadvariable work when a server is shut down and restarted i just tested it
--- End quote ---
So say I have a client var named Gold and I have two bricks with the following events
--- Code: ---1. [ ] OnActivate>Client>SaveVariable>[Client] [Gold]
2. [ ] OnActivate>Client>Centerprint>[Gold Saved!]
--- End code ---
--- Code: ---1. [ ] OnActivate>Client>LoadVariable>[Client] [Gold]
2. [ ] OnActivate>Client>Centerprint>[Gold Loaded!]
--- End code ---
Should that work?
Orthone:
--- Quote from: jes00 on August 22, 2011, 08:45:03 PM ---So say I have a client var named Gold and I have two bricks with the following events
--- Code: ---1. [ ] OnActivate>Client>SaveVariable>[Client] [Gold]
2. [ ] OnActivate>Client>Centerprint>[Gold Saved!]
--- End code ---
--- Code: ---1. [ ] OnActivate>Client>LoadVariable>[Client] [Gold]
2. [ ] OnActivate>Client>Centerprint>[Gold Loaded!]
--- End code ---
Should that work?
--- End quote ---
Yes, as long as you make sure the Gold that the player has is actually Client gold, and not player gold.
soba:
--- Quote from: Good_patch on August 21, 2011, 09:18:34 PM ---Stop god damn bumping and download the event favorites mod dumb stuff.
--- End quote ---
Get your facts straight before you go around calling people dumb stuff, buddy
jes00:
Ugh... Bump.
jes00:
Bump.