From c7981eb54b169cafaf6e8b369759d9505f97975a Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Thu, 25 Mar 2004 13:33:58 +0000 Subject: [PATCH] added build_path() --- plugins/include/amxmod.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/include/amxmod.inc b/plugins/include/amxmod.inc index 92dcc386..d77894d7 100755 --- a/plugins/include/amxmod.inc +++ b/plugins/include/amxmod.inc @@ -31,4 +31,12 @@ stock numtostr(num,string[],len) return num_to_str(num,string,len) stock strtonum(const string[]) - return str_to_num(string) \ No newline at end of file + return str_to_num(string) + +stock build_path( path[] , len , {Float,_}:... ) +{ + new basedir[32] + get_localinfo("amxx_basedir",basedir,31) + format_args(path,len,2) + return replace(path,len,"$basedir",basedir) +} \ No newline at end of file