Darkisad
Darkisad
Explore posts from servers
CC#
Created by Darkisad on 4/23/2024 in #help
✅ ssl error
No description
7 replies
CC#
Created by Darkisad on 4/20/2024 in #help
classification texts with answers
how i can classification texts with answers (with teacher)? i finded solutions only without teacher
47 replies
CC#
Created by Darkisad on 4/19/2024 in #help
BagOfWords.Transform (accord.net)
No description
8 replies
CC#
Created by Darkisad on 4/19/2024 in #help
problem with encoding cyrillic
No description
4 replies
CC#
Created by Darkisad on 1/1/2023 in #help
❔ A field initializer cannot reference the nonstatic field, method, or property
class Weapon {
public string name;
public int ammo;
public int damage;
public float scatter;
public float rate;
public float reload;
public AudioClip firesound;
public AudioClip reloadsound;
//constructor
public Weapon(string _name, int _ammo, int _damage, float _scatter, float _rate, float _reload, AudioClip _firesound, AudioClip _reloadsound) {
name = _name;
ammo = _ammo;
damage = _damage;
scatter = _scatter;
rate = _rate;
reload = _reload;
firesound = _firesound;
reloadsound = _reloadsound;
}
}
class Weapon {
public string name;
public int ammo;
public int damage;
public float scatter;
public float rate;
public float reload;
public AudioClip firesound;
public AudioClip reloadsound;
//constructor
public Weapon(string _name, int _ammo, int _damage, float _scatter, float _rate, float _reload, AudioClip _firesound, AudioClip _reloadsound) {
name = _name;
ammo = _ammo;
damage = _damage;
scatter = _scatter;
rate = _rate;
reload = _reload;
firesound = _firesound;
reloadsound = _reloadsound;
}
}
13 replies