I have this code:
#region AimBot
WebClient web2 = new WebClient(); //do not change this at all or delete
string aimbotvalue = web2.DownloadString("https://vacnet.club/admin/aimbotfov.txt"); //gets the string value from your website
public bool bAimbotEnabled = true;
public bool bVisibleCheck = true;
public bool bTargetOnGroundCheck = true;
public int iAimbotDeathBreak = 350;
public float flAimbotFov = aimbotvalue; //sets the value from your website
public float flAimbotSmooth = 30f;
#endregion`
and consistently get these errors no matter what I try:
Error CS0236 A field initializer cannot reference the non-static field, method, or property 'WeaponConfig.web2' ExternalCSGO C:\Users\laz\Desktop\ExternalCSGO-master
- Copy\External-CSGO\Settings\Config.cs 38 Active
Error CS0236 A field initializer cannot reference the non-static field, method, or property 'WeaponConfig.aimbotvalue' ExternalCSGO C:\Users\laz\Desktop\ExternalCSGO-master
- Copy\External-CSGO\Settings\Config.cs 43 Active
What I am trying to do is have public float flAimbotFov = 3f
read the 3f bit off of a text file on my website instead of just reading 3f.