Thread: [Solved] amxx 1.9 crash
View Single Post
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 10-17-2018 , 08:21   Re: amxx 1.9 crash
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
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.
I had not really understood then, the correct use of the native bind_pcvar_ *, with the example quoted by me, how could I assign a value to pcvar? Or do I have to create just the pcvar with create_cvar and use it normally?
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr