Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Error CS0119 but new keyword was used

$
0
0
I'm connecting to my database with this: IEnumerator ValidateLogin() { WWWForm form = new WWWForm(); form.AddField( "myform_user", formUser ); form.AddField( "myform_pass", formPassword ); //error is here WWW www = new WWW(URL, form); yield return www; if (www.error != null) { print(www.error); } else { print("Test ok"); formText = www.data; www.Dispose(); } } I'm getting the error: CS0119: Expression denotes a 'type', where a 'variable', 'value' or 'method group' was expected On the line: WWW www = new WWW(URL, form); I haven't done a lot of c# or unity web connectivity, and I'd appreciate the help. All of the other solutions I've found are because the programmer was missing the "new" keyword.

Viewing all articles
Browse latest Browse all 7934

Trending Articles