Trapyy
Trapyy
CC#
Created by Trapyy on 5/10/2024 in #help
Switch statement dont work with variables
string strCursor = i18n.Get("config.detectionMethod.cursor");
string strPlayer = i18n.Get("config.detectionMethod.player");

switch (Config.DetectionMethod)
{
case strCursor:
CheckTile(currentLocation, cursorTile, player);
break;
case strPlayer:
CheckTile(currentLocation, toolLocation, player);
break;
}
string strCursor = i18n.Get("config.detectionMethod.cursor");
string strPlayer = i18n.Get("config.detectionMethod.player");

switch (Config.DetectionMethod)
{
case strCursor:
CheckTile(currentLocation, cursorTile, player);
break;
case strPlayer:
CheckTile(currentLocation, toolLocation, player);
break;
}
is it possible to make this work while using switch statement?
4 replies
CC#
Created by Trapyy on 4/4/2024 in #help
✅ Problem with Visual Studio
So, i had a code that was working perfectly in Visual Studio, i was going to copy it and place in another folder for backup, but i accidentally used "Cut" and removed from the correct folder, i quickly pressed CTRL + Z and the files were back, but now its not working at all, there is like 100+ errors
11 replies
CC#
Created by Trapyy on 3/31/2024 in #help
Variables in a class not changing?
No description
3 replies