Raised This Month: $128 Target: $400
 32% 

Directories help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RaidoNek
Junior Member
Join Date: Jun 2020
Old 10-24-2020 , 18:37   Directories help
Reply With Quote #1

Hello guys, i've been searching for a long time about this, but i haven't found anything yet. Is there any way to search for all files, that are in directory? Example: I will have a directory in models( models/example ) and in it i will have like one.cfg, two.ini and three.bsp and i want to store these files somewhere, is it possible?
RaidoNek is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-24-2020 , 19:01   Re: Directories help
Reply With Quote #2

Not with an amxx plugin, if you make a module maybe.
You will have to manually define the files, either in a text file or in the plugin itself
__________________
Accepting private $$$ plugins requests.

@Steam: crazy770
@Discord: CrazY.#5317

Website | Channel


Last edited by CrazY.; 10-24-2020 at 19:02.
CrazY. is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-24-2020 , 19:33   Re: Directories help
Reply With Quote #3

There is a way. There are functions for looping directories just like you can loop files.

https://www.amxmodx.org/api/file/open_dir
https://www.amxmodx.org/api/file/next_file
https://www.amxmodx.org/api/file/close_dir
https://www.amxmodx.org/api/file/dir_exists
https://www.amxmodx.org/api/file/read_dir
__________________

Last edited by OciXCrom; 10-24-2020 at 19:42.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
RaidoNek
Junior Member
Join Date: Jun 2020
Old 10-25-2020 , 13:51   Re: Directories help
Reply With Quote #4

OciXCrom, thank you, i will try , also thank CraZy, but i don't know how to make module
RaidoNek is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:52.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode