Can’t get data in Multiplayer series!!!

Updated on June 18, 2018 in [A] Multiplayer
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
2 on June 17, 2018

Hello everyone,

I have a Problem! In the 25th video on the Multiplayer FPS series from Brackeys, we get some data, like Kills, Deaths etc. When I try everything out, it doesn’t work! I get an Error message:

NullReferenceException: Object reference not set to an instance of an object UserAccountManager+<sendGetDataRequest>c__Iterator1.MoveNext() (at Assets/Scripts/UserAccountManager.cs:88) UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)

This is my concerning part of code:

if (returnedddd.text == “Error”) { // <- Line 88 (Important)

    Debug.Log(“Data Upload Error. Could be a server error. To check try again. “);

}

My game can’t get data, because of this part of code above!

What should I do? I’ve no idea, how to fix this problem! Please help me! Thanks already in advance!

  • Liked by
  • FazEBook
Reply
1 on June 17, 2018

This is probably using the old data base control system, the asset is updated and you will need to adopt your code in order to get it to work.

on June 18, 2018

Yeah, but I am not able to modify the new script, to be valid for the other videos! I am not the best at programming, so…!!! I’ve copied the code from Braykeys GitHub project and done everything with this code! Is there any other way to fix this stupid error? And I’m sure that I will get other errors with the time!

Thank you!

PS: Can you please look at my other topics… PLEASE? 

http://forum.brackeys.com/thread/weird-reloading-bugs/

http://forum.brackeys.com/thread/multiplayer-cant-create-a-room/

Show more replies
  • Liked by
Reply
Cancel