"delete_file" Can't delete "csstats.dat"?
For example :
public plugin_end() { new path[65] new dat[16] get_localinfo( "amxx_datadir", path, 64 ) format(dat, 50,"%s/csstats.dat", path ) if( file_exists( dat ) ) { log_amx("file is %s",dat) delete_file(dat) } return PLUGIN_CONTINUE } Why can't delete? Other files are all right !help me ..thanks |
Re: "delete_file" Can't delete "csstats.dat"?
Code:
|
Re: "delete_file" Can't delete "csstats.dat"?
Thank you for your replies, but can't delete!
|
Re: "delete_file" Can't delete "csstats.dat"?
That code works for me, but I'm not using csstats.
Maybe the file is locked for exclusive usage of another plugin ... That might be the cause ... |
Re: "delete_file" Can't delete "csstats.dat"?
yes ,i think so
if put in "plugin_init",it is all right! Excuse me, you do not use " csstats " ,Then how to keep the data? |
Re: "delete_file" Can't delete "csstats.dat"?
Delete the file when the server isn't running?
|
| All times are GMT -4. The time now is 11:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.