Raised This Month: $ Target: $400
 0% 

Help with this formatting error can't figure it out.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-14-2005 , 02:57   Help with this formatting error can't figure it out.
Reply With Quote #1

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.
teame06 is offline
Send a message via AIM to teame06
 



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:15.


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