added build_path()

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

View File

@ -32,3 +32,11 @@ stock numtostr(num,string[],len)
stock strtonum(const 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)
}