Haze.
Haze.
CC#
Created by Qpy on 7/21/2023 in #help
❔ (Due in about two days) Fish Project for C# Unity
So can you explain the problem fully?
10 replies
CC#
Created by Qpy on 7/21/2023 in #help
❔ (Due in about two days) Fish Project for C# Unity
i do want to ask why you have for loops that will only run once
10 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
ill remove the misleading code
32 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
eh it works
for (int i = 0; i < opts.Length; i++)
{
if (!string.IsNullOrWhiteSpace(opts[i]))
{
Console.WriteLine($"{(option == i + 1 ? decorator : " ")}{opts[i]}\u001b[0m");
}
}
for (int i = 0; i < opts.Length; i++)
{
if (!string.IsNullOrWhiteSpace(opts[i]))
{
Console.WriteLine($"{(option == i + 1 ? decorator : " ")}{opts[i]}\u001b[0m");
}
}
32 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
yeah that code was just copied from chatgpt and i couldnt be bothered to remove the optionsArray part
32 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
some code from chatgpt (the best coder) which does actually seem decent
case ConsoleKey.UpArrow:
case ConsoleKey.LeftArrow:
if (arrow1 == "UpArrow" || arrow1 == "LeftArrow")
{
option = option == 1 ? options : option - 1;
}
break;
case ConsoleKey.UpArrow:
case ConsoleKey.LeftArrow:
if (arrow1 == "UpArrow" || arrow1 == "LeftArrow")
{
option = option == 1 ? options : option - 1;
}
break;
32 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
there might be some stuff ive missed but im too tired
32 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
(also you can nest tertiary operators if you really wanted to
option = arrow1 == "UpArrow" ? (option == 1 ? options : option - 1) : option;
option = arrow1 == "UpArrow" ? (option == 1 ? options : option - 1) : option;
)
32 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
case ConsoleKey.UpArrow:
if (arrow1 == "UpArrow")
{
option = option == 1 ? options : option - 1;
}
else
{
}
break;
case ConsoleKey.UpArrow:
if (arrow1 == "UpArrow")
{
option = option == 1 ? options : option - 1;
}
else
{
}
break;
you dont need else statements for if statements
32 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
also replacing the "" with String.Empty might be better, i cant remember
32 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
if (welcomemsg != ""){
Console.WriteLine($"{welcomemsg}");
}
Console.ResetColor();
if (arrowstousemsg != ""){
Console.WriteLine($"{arrowstousemsg}");
}
if (welcomemsg != ""){
Console.WriteLine($"{welcomemsg}");
}
Console.ResetColor();
if (arrowstousemsg != ""){
Console.WriteLine($"{arrowstousemsg}");
}
32 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
could be simplified to
32 replies
CC#
Created by XD on 6/4/2023 in #help
❔ Any tips on how to make this function cleaner? I feel it's a mess
if (welcomemsg == "")
{

}
else
{
Console.WriteLine($"{welcomemsg}");
}
Console.ResetColor();
if (arrowstousemsg == "")
{

}
else
{
Console.WriteLine($"{arrowstousemsg}");
}
if (welcomemsg == "")
{

}
else
{
Console.WriteLine($"{welcomemsg}");
}
Console.ResetColor();
if (arrowstousemsg == "")
{

}
else
{
Console.WriteLine($"{arrowstousemsg}");
}
32 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
thats painful
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
are my eyes deceiving me, or are your sub routines all in Main?
41 replies
CC#
Created by p0ison on 5/23/2023 in #help
❔ Siticone Issue
hwid, normally to get around bans on games i believe
281 replies
CC#
Created by p0ison on 5/23/2023 in #help
❔ Siticone Issue
but i am not condoning the use of hwid spoofing
281 replies
CC#
Created by p0ison on 5/23/2023 in #help
❔ Siticone Issue
surely you can just copy the actual code behind it and recode to a console app
281 replies
CC#
Created by p0ison on 5/23/2023 in #help
❔ Siticone Issue
if you really wanted to you could just convert it to a console app and not worry about this whole thing
281 replies
CC#
Created by p0ison on 5/23/2023 in #help
❔ Siticone Issue
where is the project downloaded from?
281 replies