amxx 1.9 crash
Hello, does anyone know why the code below crashes the sv? No log, clean crash.
PHP Code:
|
Re: amxx 1.9 crash
You misunderstand the use of bind_pcvar_* natives.
They bind a cvar to a variable. Meaning that variable will contain the actual cvar's value in real time. This is NOT a cvar handle. You can't set a value from that. To set a cvar with set_pcvar_num(), you still need to retrieve the handle from create_cvar() and using that value. You can also use set_cvar_num(), it doesn't matter. |
Re: amxx 1.9 crash
Quote:
|
Re: amxx 1.9 crash
Quote:
The bind_pcvar_* functions just set the passed in variable to the cvar's value and keep it automatically updated. That saves you from using get_pcvar_*/get_cvar_* every time you need to use the cvar's value. |
Re: amxx 1.9 crash
Thanks for all the clarifications.
|
All times are GMT -4. The time now is 00:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.