BlyZe
BlyZe
CC#
Created by Tomy on 11/9/2023 in #help
❔ Console RPG Game
If you want to use an engine like package you could use this: https://www.nuget.org/packages/ConsoleNexusEngine
35 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
Yeah then char
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
A string is a char array
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
A char is a single character
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
you can also use string
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
char is a character
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
Okay so you could do something like this:
public static char NeedsElevator(int floors)
{
return floors > 3 ? 'a' : 'b';
}
public static char NeedsElevator(int floors)
{
return floors > 3 ? 'a' : 'b';
}
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
then you have to change the return type
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
i dont know what you want to archieve with this method
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
public static bool op(int num = 0)
{
return num > 3;
}
public static bool op(int num = 0)
{
return num > 3;
}
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
thats true if num is greater then 3 otherwise false
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
return num > 3;
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
you can just
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
thats a string
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
return true;
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
for example
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
you need to return a bool
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
ahhh
86 replies
CC#
Created by daniel1 on 2/27/2023 in #help
❔ how do i use functions like for example "public static bool (int num = 0)"
You need curly braces after
86 replies