AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   plugin_precache is executed BEFORE config file loaded... (https://forums.alliedmods.net/showthread.php?t=3103)

Neo-Vortex 06-26-2004 05:17

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?

PM 06-26-2004 05:26

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.

Neo-Vortex 06-26-2004 05:31

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...

AssKicR 06-26-2004 05:40

Quote:

Originally Posted by Neo-Vortex
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...

why that early?

Neo-Vortex 06-26-2004 05:40

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...

Neo-Vortex 06-26-2004 05:42

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...

Johnny got his gun 06-26-2004 07:51

why not just do it first thing in plugin_precache?

AssKicR 06-26-2004 07:55

try plugin_cfg maybe

Neo-Vortex 06-26-2004 07:55

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

Neo-Vortex 06-26-2004 07:56

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.