plugin_precache is executed BEFORE config file loaded...
hey, plugin_precache() is being executed before the config file is run, even if i manually specify it to run at the top of the function, it dosent get executed untill after all the plugins have fully loaded and done plugin_precache()
i really need a way to store some varibles (4) that can be read by plugin_precache() easily and can easily be modified by hand any ideas? |
plugin_precache is executed before all other events are because it is part of the HL map loading process: the server needs to know what is precached before loading the map.
|
yes, i worked that out, but i need a way to make it load the amxx config file (or any other config file for that matter) BEFORE plugin_precache() is called...
|
Quote:
|
oh, and for the record, this is for when you first start up the server, it dosent matter between map changes as for the stuff in the config file isnt likely to change, so yeah...
|
hmmm, didnt see your post asskicker when i posted the last one, anyway
Im connecting to a mysql server wich stores stuff in it relating to what model's, the 4 fields i need to store are user, pass, host, db also, i dont wanna hard-code it in... |
why not just do it first thing in plugin_precache?
|
try plugin_cfg maybe
|
do what? load the config file? how? using server_command or w/e it is to execute it DOSENT work because it just gets queued untill all the plugins finish loading... pretty much my question was HOW to load it without having to exec it because that will only load it after all the plugins finish loading
|
plugin_cfg? native or something else?
Edit: found it was a function, i would use this, except i need it in plugin_precache... so yeah, wont work for that (atleast for when you first start the server, and im not gonna make a skrewy plugin...) |
| All times are GMT -4. The time now is 14:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.