Assets/Scripts/MultiplayerManager.cs(33,25): error CS0103: The name `maxusers’ does not exist in the current context
Assets/Scripts/MultiplayerManager.cs(80,25): error CS0029: Cannot implicitly convert type UnityEngine.NetworkPlayer' to bool’
Assets/Scripts/MultiplayerManager.cs(88,43): error CS0103: The name `tempp1’ does not exist in the current context
Assets/Scripts/MultiplayerManager.cs(88,36): error CS1502: The best overloaded method match for `System.Collections.Generic.List.Remove(MPPlayer)’ has some invalid arguments
Assets/Scripts/MultiplayerManager.cs(88,36): error CS1503: Argument #1' cannot convert object’ expression to type `MPPlayer’
and when i use
private string MatchName = new string('*');
these errors come up
Assets/Scripts/MultiplayerManager.cs(11,51): error CS1502: The best overloaded method match for `string.String(char*)’ has some invalid arguments
Assets/Scripts/MultiplayerManager.cs(11,51): error CS1503: Argument #1' cannot convert char’ expression to type `char*’
Assets/Scripts/MultiplayerManager.cs(13,55): error CS1502: The best overloaded method match for `string.String(char*)’ has some invalid arguments
Assets/Scripts/MultiplayerManager.cs(13,55): error CS1503: Argument #1' cannot convert char’ expression to type `char*’
I dont think you need a help on this forum but you need help in programming in general
Look at your “maxusers” with an “S” at the end, but your variable in “StartServer” function dont have an s in “maxuser”. That’s why it gives you an error, this is not the fault of the string.
Idem for “tempp1” instead of “temp1”…
The second method was obviously wrong, so forget it, just use the first method.
ok thank you sorry for the spam and all im a practical learner so this is why im doing this way, im also for any stress ive coursed theres one more thing i need you guys to help me with
Assets/Scripts/MultiplayerManager.cs(80,25): error CS0029: Cannot implicitly convert type UnityEngine.NetworkPlayer' to bool’
void Client_RemovePlayer(NetworkPlayer view)
{
MPPlayer temp1 = null;
foreach(MPPlayer p1 in PlayerList)
{
if (p1.PlayerNetwork = view)
{
}
}
if (temp1 != null)
{
PlayerList.Remove(temp1);
}
}
But sorry if i repeat : This kind of problem is the base of basic of basic of programming. Advice : Try to learn a bit more before start a Unity project