Hi guys, one question. I made a “coin collection” system in a game project I have in unreal. The problem is that when I start the game as a server with 2 or 3 clients, I “log in” to each client with different accounts and when I collect the “coins” it adds the coins in all the accounts logged in at the moment. The query in the database is well formulated, I don’t know what it could be, maybe replication problems? I really appreciate your help, thank you very much. Dejo dos imagenes, the function that saves the information in the database table, and the function that adds +1 when you hover over the "coin"https://ibb.co/C6F96yQ https://ibb.co/4f213sF
Are you running Dedicated Server, or Listen Server? I imagine it’s listen server. If you are running any “Multicast” events as RPCs the function may be replicating to ALL clients. Check your Multicasts and Ownerships if you use any.
Where is your “ADD COIN” function located? it should be in the Gamemode owned by the Server only. AND the function should have a tag with a unique player ID associated with your database.
Is your server a dedicated one, or do you use a listen server instead? Perhaps a listen server is involved. A function may be replicated to ALL clients if it is used in a “Multicast” event that is being executed as an RPC. If you are making use of Multicasts or Ownerships, make sure to check them.
Where can I find the “ADD COIN” button? It belongs solely in the Server’s Gamemode. Furthermore, the function should be tagged with the player’s database-specific identifier.