Search Unity

Javascript Problem Networking

Discussion in 'Scripting' started by JordanJxx, Jan 11, 2014.

  1. JordanJxx

    JordanJxx

    Joined:
    Jan 11, 2014
    Posts:
    2
  2. jackmott

    jackmott

    Joined:
    Jan 5, 2014
    Posts:
    167
    The error message describes exactly what is wrong. Line 82 is missing one or more ")" characters.
     
  3. JordanJxx

    JordanJxx

    Joined:
    Jan 11, 2014
    Posts:
    2
    if(GUI.Button(Rect(btnX *1.5 +btnW, btnY*1.2 + (btnH * i), btnW*3, btnH*0.5), hostData.gameName); thats all is on line 82 seems okay for me
     
  4. jackmott

    jackmott

    Joined:
    Jan 5, 2014
    Posts:
    167
    One or more ")" characters is missing. Count the opening parens, count the closing parens.
     
  5. softwizz

    softwizz

    Joined:
    Mar 12, 2011
    Posts:
    793
    Code (csharp):
    1. if(GUI.Button(Rect(btnX *1.5 +btnW, btnY*1.2 + (btnH * i), btnW*3, btnH*0.5), hostData[i].gameName);
    First there is a ; on the end that shouldnt be there so change that to )

    Code (csharp):
    1. if(GUI.Button(Rect(btnX *1.5 +btnW, btnY*1.2 + (btnH * i), btnW*3, btnH*0.5), hostData[i].gameName))