My CVAR Problems/and other questions.
This compiles perfectly, but nothing shows up where the cvar's string should be. Not when I put it in server.cfg/amxx.cfg or change it manually. I dont know why. My guess is that the get_cvar_string can't global so it doesnt keep the cvars information.
The problematic code: PHP Code:
Thanks to all who help!! :D |
Re: My CVAR Problems/and other questions.
PHP Code:
PHP Code:
because you say it shows nothing. EDIT: It is better to make 1 global task instead of 32 individual tasks. PHP Code:
|
Re: My CVAR Problems/and other questions.
AWESOME! The "website" worked great! =)
Thanks for the help How can I make it check the server.cfg/amxx.cfg for the cvar? When I put it in now nothing happens, it only works if I change it in-game. |
Re: My CVAR Problems/and other questions.
I thought it checked automaticly for that. i'll mess around with it.
|
Re: My CVAR Problems/and other questions.
I tried using pcvars, and it works fine now.
PHP Code:
|
Re: My CVAR Problems/and other questions.
Don't retrieve the cvar value in plugin_init(). Probably the earliest you should do it is plugin_cfg().
|
Re: My CVAR Problems/and other questions.
Thanks a load man, it works with server.cfg also!
This really helped me out, thanks a load man! Does this work? PHP Code:
Why can't you retrieve the cvar value in plugin initiation? It has worked for me before. |
Re: My CVAR Problems/and other questions.
You created and retrieved the cvar at the same time. It's not guaranteed, afaik, that the .cfg will be executed in between the time you create the cvar and retrieve the cvar when they are done right after the other.
|
Re: My CVAR Problems/and other questions.
oh ok I understand now. =P
Does that code work? |
Re: My CVAR Problems/and other questions.
Quote:
hmm and do u need to put () after declaring a function? idk |
| All times are GMT -4. The time now is 00:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.