Problem precaching + reading file.
Hi, I am trying to have my plugin read a sound filename from a file, then precache that sound.
Here is the code: Code:
Here is the file it's reading from (note the steam ids are for other parts of the plugin): Quote:
|
Re: Problem precaching + reading file.
Move this to the first line of plugin_precache.
Code:
The reason why is because plugin_precache is called before plugin_init. |
Re: Problem precaching + reading file.
Thanks, can you also tell me if there is something wrong with this code below? I think it is crashing my server...
Code:
|
Re: Problem precaching + reading file.
Inifinite loop.
Code:
connectCheckNum will always = 0. So it will always execute. |
Re: Problem precaching + reading file.
Once the player connects fully though it sets to 1 though, right?
Code:
How can I fix this? |
Re: Problem precaching + reading file.
You should use client_putinserver. It the same as what you are doing.
edit: Also i'm not sure why you are trying to detect when they are fully joined the server but client_putinserver forward is what you need if you are trying to do that. When client_putinserver is execute they are about to initializing screen I believe. |
Re: Problem precaching + reading file.
EDIT:
Alright it's all fixed except now even if the user has the file being precached it will try and make them download it anyway. Then it doesn't get past downloading and verifying resources when connecting to the server. Can anyone help with this? |
| All times are GMT -4. The time now is 22:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.