Raised This Month: $ Target: $400
 0% 

Parsing MYSQL from a Textfile


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dEMolite
Member
Join Date: Feb 2006
Old 10-11-2006 , 16:14   Re: Parsing MYSQL from a Textfile
Reply With Quote #4

k so
Code:
public save_tmptop15() {     new pathname[128]     get_cvar_string("top15temp_path",pathname,127)         new mapname[128]     get_mapname(mapname,127)         new filename[128]       format(filename, 127, "%s/tmptop15.txt", pathname)         if( file_exists(filename) )           delete_file(filename)         write_file(filename, mapname) // save the map name in the firstline     for( new i = 0; i < 15; i++ ) {         if( top15_times[i] == CT_MAX_TIME )             return                 new number[192]         num_to_str(top15_times[i],number,191)         write_file(filename, top15_authid[i])         write_file(filename, top15_names[i])                 write_file(filename, number)     }     return }

Wrote the map in the firstline:
Code:
write_file(filename, mapname)
Then Wrote in the next 15lines 15ranks with name time and steamid
Code:
        write_file(filename, top15_authid[i])         write_file(filename, top15_names[i])                 write_file(filename, number)

that is the command for the textfile creating.
dEMolite is offline
 



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 04:57.


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