- Home /
This question was
closed Oct 26, 2015 at 10:25 AM by
Bunny83 for the following reason:
The question is answered, right answer was accepted
Parameter Name Need "Some Generator Here" is a duplicate
Hey, I was getting this error and wondered why. Here is what I have:
[System.Serializable]
public class KillFeedInfo
{
public KillFeedInfo(string K, string, G, string V)
{
Killer = K;
Gun = G;
Killed = V;
}
anyone know how to fix this? Thank you in advance.
Comment
Best Answer
Answer by Bunny83 · Oct 26, 2015 at 10:24 AM
Parameters are like variable declarations. You always need a type followed by a variable name. Multiple parameter declarations have to be separated by a comma. You have this:
(string K, string, G, string V)
The second parameter doesn't have a variable name and your third parameter doesn't have a type. You just have to remove the second comma that currently separates the type "string" and the name "G"