![]() |
Finding a file
Is there any command that finds the path of a file?
i.e. if I had 'zomg.png' in 'levels/images/,' it would return 'images/zomg.png' |
No. Scan through every folder =D
|
D: Yeah, I did that.
However, when it finds the file, it's not returning the index. :/ PHP Code:
|
Nevermind, I did 'if (temp.zomg[0] == level)' and it worked.
Is the index thing a bug? Or does it just not work serverside? |
Don't you mean .indexof()?
|
Couldn't you use 'if (level in temp.zomg)' ?
|
Quote:
It's what's listed in the docu_graalscript.txt, as well. Quote:
|
| All times are GMT +2. The time now is 12:23 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.