ID:1898995
 
(See the best response by Super Saiyan X.)
Code:
client

var
TEST = ""

proc

loadResources()
for(var/f in flist("anim/"))
if(findtext(f,".css") || findtext(f,".js"))
TEST += "[f]"
src << browse_rsc(f, "[f]") //THIS IS THE RUNTIME ERROR


Problem description:

The "TEST" string displays the file name correctly, but the file/f gives me a runtime.

runtime error: bad resource file
proc name: loadResources (/client/proc/loadResources)
source file: _client.dm,31
usr: null
src: Guest-W3805954320 (/client)
call stack:
Guest-W3805954320 (/client): loadResources()
Guest-W3805954320 (/client): New()
Best response
You probably need to do:
f = file(f)


since the file does not exist with the resource cache yet.