Raised This Month: $12 Target: $400
 3% 

[REQ] File: save and load


Post New Thread Reply   
 
Thread Tools Display Modes
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
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-23-2011 , 15:56   Re: [REQ] File: save and load
Reply With Quote #2

Quote:
Originally Posted by bartek93tbg View Post
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.
dont create another topic, youre just spamming. post in scripting help.

there are only a few people who browse this forum.
__________________
jc980 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode