daveeska
daveeska
CC#
Created by daveeska on 3/10/2023 in #help
❔ ✅ 'Object reference not set to an instance of an object.'
11 replies
CC#
Created by daveeska on 3/10/2023 in #help
❔ Failed reading a file
The code: class Server { private string usrcLoc; private int totalUsrs; private void init() { string usercount = usrcLoc; if (File.Exists(usercount)) { totalUsrs = int.Parse(File.ReadAllText(usercount)); } else { Console.WriteLine("oof"); totalUsrs = 0; } } public Server() { usrcLoc = @"C:\temp\ChaTe\ChatList\usrcount.txt"; totalUsrs = 0; }
46 replies
CC#
Created by daveeska on 10/23/2022 in #help
How to make a function stays
I want to make like building mechanic to my game, but if I just "if(buttonclick){drawBlock}", the block just stays when the button is being clicked, and disappear when the button released
36 replies
CC#
Created by daveeska on 10/23/2022 in #help
How do I check the length of an array when that array is null?
8 replies