Raised This Month: $ Target: $400
 0% 

Simple file write and read


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
-X3N- | DEFAULT
Junior Member
Join Date: Aug 2005
Location: Right Behind You
Old 08-31-2005 , 15:11   Simple file write and read
Reply With Quote #1

All i want to do is bring one value from one map change to another. It's the score of a bot on my server. How can i do this correctly?

Code:
public storescore() {           new fileTxt[64]     format(fileTxt,63,"%i",botscore)       //write_file ( const file[], const text[], [ line ] )     write_file(g_FileLocation,fileTxt,-1)     return PLUGIN_HANDLED } public readscore() {           new read[64]     new a     //read_file ( const file[], line, text[], len, &txtLen )     read_file(g_FileLocation,1,read,63,a)     botscore = read[]     return PLUGIN_HANDLED }
__________________
-X3N- | DEFAULT is offline
Send a message via AIM to -X3N- | DEFAULT Send a message via MSN to -X3N- | DEFAULT
 



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 14:30.


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