C
C#12mo 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
Angius12mo ago
Define "not working" Also, what are the errors? I don't see any mentioned in the paste
Nate
NateOP12mo 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
Angius12mo 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
NateOP12mo ago
Not to me I tried changing everything and it still gives errors I'm a newbie
Angius
Angius12mo 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
NateOP11mo 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