|
public save_top15() {
new pathname[128]
get_cvar_string("top15_path",pathname,127)
new mapname[64]
get_mapname(mapname,63)
new filename[128]
format(filename, 127, "%s/%s-top15.txt", pathname, mapname)
if( file_exists(filename) )
delete_file(filename)
for( new i = 0; i < 15; i++ ) {
if( top15_times == CT_MAX_TIME )
return
new number[192]
num_to_str(top15_times,number,191)
write_file(filename, top15_authid)
write_file(filename, top15_names)
write_file(filename, number)
}
return
}
-------------------------------------------
是不是这段代码哪里错误,造成只能写入一个top15?
如果有错误,希望大虾帮忙修改下,小弟感激不尽。 |
|