Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Llyd · Nov 24, 2013 at 01:07 PM · c#errorargumentsoverload

C# No overload for method 'BeOlvasBabok' takes 1 arguments

Hello,

It's a project in my school, I try to get a few dummy's position, and the direction, where they are going. I have to use methods, so I try to implement it in this way. I got the error here:

babok = BeOlvasBabok("tabla.be,b");

where tabla.be is the name of the file, and b is a short number, and babok is a byte[,].

And it's definition is:

 static byte[,] BeOlvasBabok(string filenev, short babszam)
         {
             byte[,] babok;
             babok = new byte[3, babszam];
             //first line reread, to start at the second line
             StreamReader sr = new StreamReader("tabla.be");
             string a = sr.ReadLine();
             for (int i = 0; i != babszam; i++)
             {
                 a = sr.ReadLine();
                 string[] c = a.Split(' ');
                 babok[0, i] = byte.Parse(c[0]);
                 babok[1, i] = byte.Parse(c[1]);
                 // converting the directions to numbers: down(l):1, up(f):2, right(j):3, left(b):4
                 switch (c[2])
                 {
                     case "l":
                     case "L":
                         babok[2, i] = 1;
                         break;
                     case "f":
                     case "F":
                         babok[2, i] = 2;
                         break;
                     case "j":
                     case "J":
                         babok[2, i] = 3;
                         break;
                     case "b":
                     case "B":
                         babok[2, i] = 4;
                         break;
                     default:
                         Console.WriteLine("Hiba a " + i + "-edik bevitt adatban!");
                         break;
                 }
                 sr.Close();
             }
             return babok;
         }

I found a few similiar problems here, but unfortunately can't figure out, have to use them in my solution.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Durayel · Nov 24, 2013 at 03:55 PM

It just looks like your end quote is in the wrong place and should probably be: babok = BeOlvasBabok("tabla.be", b);

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

No overload for method 'ClampMagnitude' takes '3' arguments 2 Answers

[Solved]List.FindIndex error C# 1 Answer

No overload for method 'GetMethod' takes 5 argument 0 Answers

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges