designer1337 / csgo-cheat-base

simple csgo internal base.
MIT License
245 stars 48 forks source link

Help with drop down box #89

Open comix4k opened 4 years ago

comix4k commented 4 years ago

So I'm trying to make a dropdown box for a knife changer

I used the code from https://github.com/designer1337/csgo-cheat-base/issues/85

With also a friend of mine helping me

I've already added the code to framework.cpp and framework.hpp

but in menu.cpp i get 6 errors on this line: menu_framework::shit_combo(variables::menu::x + 120, variables::menu::y + 135, render::fonts::watermark_font, "combo", 1, false, std::vector<>);

error2 error1

error3

prevismatias commented 4 years ago

copy and paste the code don't provide ss.

look at this and look at what you put, look at it carefully void shit_combo(std::int32_t x, std::int32_t y, unsigned long font, const std::string string, int& value, bool& opened, std::vector<std::string_view> items)

comix4k commented 4 years ago

copy and paste the code don't provide ss.

look at this and look at what you put, look at it carefully void shit_combo(std::int32_t x, std::int32_t y, unsigned long font, const std::string string, int& value, bool& opened, std::vector<std::string_view> items)

Im still so confused

comix4k commented 4 years ago

copy and paste the code don't provide ss.

look at this and look at what you put, look at it carefully void shit_combo(std::int32_t x, std::int32_t y, unsigned long font, const std::string string, int& value, bool& opened, std::vector<std::string_view> items)

menu_framework::shit_combo(variables::menu::x + 120, variables::menu::y + 135, render::fonts::watermark_font, "shit combo", 1, false, string);

kurisufriend commented 4 years ago

why are you passing 1 and false as reference arguments? why would that work? read this article

edit: the empty vector is also wrong but you seem to have fixed that (?)

comix4k commented 4 years ago

why are you passing 1 and false as reference arguments? why would that work? read this article

edit: the empty vector is also wrong but you seem to have fixed that (?)

menu_framework::shit_combo(variables::menu::x + 120, variables::menu::y + 135, render::fonts::watermark_font, "shit combo", variables::shitcombo, variables::knifechanger, std::vector string = { "lol", "no", "penis" });

type name is not allowed std::vector string

ghost commented 4 years ago

holy fucking shit stop pasting and read the code everyone told u everything u need and the kind man even linked you a fucking article

stay cool, sent from smart fridge with twitter support

comix4k commented 4 years ago

holy fucking shit stop pasting and read the code everyone told u everything u need and the kind man even linked you a fucking article

stay cool, sent from smart fridge with twitter support

image