Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
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
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-17-2005 , 02:25  
Reply With Quote #2

Help, please help.
teame06 is offline
Send a message via AIM to teame06
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-17-2005 , 21:47  
Reply With Quote #3

Code:
format(filename, 63, "%s/L%m%d.log", filepath)

%s, %m, and %d are all data.. things... to be replaced. However, you only specify the value to replace it with for one, filepath.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



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 06:45.


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