MultiplayerFPS-Tutorial icon indicating copy to clipboard operation
MultiplayerFPS-Tutorial copied to clipboard

Network Manager For Hosting Players

Open adnanbashir1993 opened this issue 8 years ago • 2 comments

networkManager.matchMaker.CreateMatch(roomName , roomSize , true , "" , "" , "" , 0 , 0 , networkManager.OnMatchCreate);

In Unity 2017 , it requires 9 arguments , either i didn't know the scenario , please correct me as i got a null reference error.

adnanbashir1993 avatar Nov 23 '17 11:11 adnanbashir1993

Your line code it's correct, maybe you're not giving values to roomName or roomSize, and that's why you're getting the null reference error, but I can't assure it, I would need more details of youre error message, the moment you're getting it to give you an specific answer, but you can try checking the values of you're variables as I said before.

Let me know if this helped you to solve you're issue.

cesarchamorro avatar Jan 12 '18 05:01 cesarchamorro

thanks for solution https://github.com/adnanbashir1993

ZahiriNatZuke avatar Mar 10 '19 03:03 ZahiriNatZuke