Quote:
Originally Posted by GetRektByNoob
im almost done with my plugin but there is only one more thing...
i used this function
Code:
SetConVarInt(weapon_recoil_scale,0,true,false);
and got this error message
Code:
error 017: undefined symbol "weapon_recoil_scale"
and i cant find out y...
|
Quote:
Originally Posted by Whai
|
From this
"Global New Api Reference"
You can search and find
SetConVarInt Function and you'll see
Code:
SetConVarInt(Handle convar, int value, bool replicate, bool notify)
now with your
Code:
SetConVarInt(weapon_recoil_scale,0,true,false);
Is "weapon_recoil_scale" is a handle ? No, it's the name of the ConVar
Here is how to do :
From this :
Global New Api Reference
if you search a little bit, you'll find
"FindConVar", it says
"return to a ConVar object if found; null otherwise."
Code:
ConVar FindConVar(const char[] name)
So what you have to do is :
Code:
Handle WeaponRecoil;
public void OnPluginStart()
{
WeaponRecoil = FindConVar("weapon_recoil_scale");
}
and now you can do
Code:
SetConVarInt(WeaponRecoil ,0,true,false);
__________________