Question Errors

imgunter

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Mar 20, 2020
Messages
14
Reaction score
18
Hello, who can help me with this error? I can't fix it, i don't have any other ideas to make it:
error C2440: 'initializing': cannot convert from 'initializer list' to std::vector<WeaponName_t,std:allocator<WeaponName_t>>

The error lines is:
std::vector<WeaponName_t> WeaponNames =
{ <--------- here is the error
{ here i put all codes (7,8,9,63 etc "All Weapons" }, <---- if i delete this it's work but i want to make at aimbot to work with all weapons not just with ak or just with aug, so can someone help me?
{ 7, "AK-47" },
{ 8, "AUG" },
{ 9, "AWP" },
{ 63, "CZ75 Auto" },
{ 1, "Desert Eagle" },
{ 2, "Dual Berettas" },
{ 10, "FAMAS" },
{ 3, "Five-SeveN" },
{ 11, "G3SG1" },
{ 13, "Galil AR" },
{ 4, "Glock-18" },
{ 14, "M249" },
{ 60, "M4A1-S" },
{ 16, "M4A4" },
{ 17, "MAC-10" },
{ 27, "MAG-7" },
{ 33, "MP7" },
{ WEAPON_MP5, "MP5" },
{ 34, "MP9" },
{ 28, "Negev" },
{ 35, "Nova" },
{ 32, "P2000" },
{ 36, "P250" },
{ 19, "P90" },
{ 26, "PP-Bizon" },
{ 64, "R8 Revolver" },
{ 29, "Sawed-Off" },
{ 38, "SCAR-20" },
{ 40, "SSG 08" },
{ 39, "SG 553" },
{ 30, "Tec-9" },
{ 24, "UMP-45" },
{ 61, "USP-S" },
{ 25, "XM1014" }

};
 
Top