added build_path()
This commit is contained in:
parent
a6473737a2
commit
c7981eb54b
|
@ -32,3 +32,11 @@ stock numtostr(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)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user