View Single Post
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-06-2006 , 20:19   Re: How not to hard code paths
Reply With Quote #5

Just some FYI, get_localinfo() will get you any of the paths defined in the core.ini, here is an example of a stock core.ini

Code:
; Configuration file for AMX Mod X
amxx_logdir addons/amxmodx/logs
amxx_configsdir addons/amxmodx/configs
amxx_datadir addons/amxmodx/data
amxx_modules addons/amxmodx/configs/modules.ini
amxx_plugins addons/amxmodx/configs/plugins.ini
amxx_pluginsdir addons/amxmodx/plugins
amxx_modulesdir addons/amxmodx/modules
amxx_vault addons/amxmodx/data/vault.ini
csstats_score addons/amxmodx/data/csstats.amxx
csstats  addons/amxmodx/data/csstats.dat
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181