Rofus-_-
Rofus-_-
CC#
Created by Rofus-_- on 10/28/2023 in #help
❔ Big Problem in C# plz someone help
so i'm new to coding (just so you know so if you say something to advanced i will maybe not know what it is) and i have made or making a a movement for the mouse to go down with basiclly when i left click i want my mouse to go down and rn the code is about 3600 lines and i got some big problems that no one really haces on the internet or at least what i can find, this is the problems in one of the codes:
void OnEvent(string eventName, int arg)
{
//guner 5
if (eventName == "MOUSE_BUTTON_PRESSED" && arg == guner 5
{
kickback = !kickback;
gun = arg;
if (kickback == false)
{
Console.WriteLine("guner_5_off");
}
else
{
Console.WriteLine("guner_5_on");
EnablePrimaryMouseButtonEvents(true);
}
}
void OnEvent(string eventName, int arg)
{
//guner 5
if (eventName == "MOUSE_BUTTON_PRESSED" && arg == guner 5
{
kickback = !kickback;
gun = arg;
if (kickback == false)
{
Console.WriteLine("guner_5_off");
}
else
{
Console.WriteLine("guner_5_on");
EnablePrimaryMouseButtonEvents(true);
}
}
the name 'EnablePrimaryMouseButtonEvents' does not exist in the current context and i have much more such as ..
The name 'IsMouseButtonPressed' does not exist in the current context
The name 'IsModifierPressed' does not exist in the current context
The name 'PressKey' does not exist in the current context
The name 'ReleaseKey' does not exist in the current context
The name 'IsMouseButtonPressed' does not exist in the current context
The name 'IsModifierPressed' does not exist in the current context
The name 'PressKey' does not exist in the current context
The name 'ReleaseKey' does not exist in the current context
that i had on soooo many locations but i fixed it some what with using this:
bool IsMouseButtonPressed(int button);
bool IsModifierPressed(string modifier);
void PressKey(string key);
void ReleaseKey(string key);
bool IsMouseButtonPressed(int button);
bool IsModifierPressed(string modifier);
void PressKey(string key);
void ReleaseKey(string key);
now with using does i lost a lot of errors i had in the code but it still says that the "Local function 'IsMouseButtonPressed(int)' must declare a body because it is not marked 'static extern'" (for example) and idk what to do with that info. i guess i'm supposed to give it a comand on what is "IsMouseButtonPressed" but idk how to give it a command that works or does not give me does scream errors
9 replies