Alright i'm having little trouble with this path coding. i'm getting this error.
Quote:
L 03/16/2005 - 00:43:41: [AMXX] Run time error 25 (parameter error) on line 75 (file "mapchooser2.sma").
L 03/16/2005 - 00:43:41: String formatted incorrectly - parameter 5 (total 4)
|
Code:
new filename[64], filepath[64], logfilename[256]
get_basedir(filepath, 63)
format(filepath, 63, "%s/logs", filepath)
format(filename, 63, "%s/L%m%d.log", filepath)
get_time(filename,logfilename,255)
Quote:
|
Originally Posted by Hard Code Path
get_time("addons/amxmodx/logs/L%m%d.log",logfilename,255)
|
when i have it hard code path it works fine no error but when i try this code to remove the hard code path it comes with a error and there is no compiling error either. I am porting over MapChooserII from amxmod cuz i can't find a plugin here that only does remember last 5 maps i don't need anything else for the mapchooser. So i hope someone can help me thanks.