added build_path()

This commit is contained in:
Felix Geyer 2004-03-25 13:33:58 +00:00
parent a6473737a2
commit c7981eb54b

View File

@ -31,4 +31,12 @@ stock numtostr(num,string[],len)
return num_to_str(num,string,len) return num_to_str(num,string,len)
stock strtonum(const string[]) stock strtonum(const string[])
return str_to_num(string) 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)
}