View Single Post
Author Message
bartek93tbg
Member
Join Date: Apr 2011
Location: Poland
Old 05-23-2011 , 14:11   [REQ] File: save and load
Reply With Quote #1

Hi.
Can someone write simple code which will save to file 3 variables and after map change load them?

[int] topexp
[string] topexpname
[string] topexplvl

For example to file located in "plugins/zp_top/zp_top.txt".

They should be written like this:
[file]
topexp
topexpname
topexplvl
[/file]

And old values should be deleted everytime you save new variables.

Thanks.
bartek93tbg is offline