C
C#10mo ago
Nate

fix errors

https://pastebin.com/z6uTe8kX Why is CreateConfig not working? I also provided the errors in the pastebin with the code
Pastebin
Config.csusing Newtonsoft.Json;class Config{ public static Co - ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
6 Replies
Angius
Angius10mo ago
Define "not working" Also, what are the errors? I don't see any mentioned in the paste
Nate
Nate10mo ago
They're at the end Cannot implicitly convert type 'long' to 'string' x3 in different places and cannot convert from 'System.Collections.Generic.Dictionary<string, Program.User>.ValueCollection' to 'System.Collections.Generic.IEnumerable<User>
Angius
Angius10mo ago
They seem pretty clear Something wants a string, you're giving it a long Three times Something else wants an IEnumerable<User> but you're giving it a Dictuinary<string, User>
Nate
Nate10mo ago
Not to me I tried changing everything and it still gives errors I'm a newbie
Angius
Angius10mo ago
Look at the line number, first of all That's where the error is Then, look at the types Maybe some variable is of type string but you're giving it a value of type long Maybe some method wants a string as a parameter but you're giving it a long
Nate
Nate10mo ago
Sorry I forgot to mention 1 hour after I sent that I fixed it @ZZZZZZZZZZZZZZZZZZZZZZZZZ sorry
Want results from more Discord servers?
Add your server