Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by LeeJungYeul · Oct 01, 2018 at 04:01 PM · Player Datadata

I'd like to create a sending money function!

I'd like to create a sending money function!

I'am using Unity3D.

I saved values in the Player data and created the Get and Set functions to finish the function check.

I want to change the data using the ID of another user as a parameter here.

Is it possible? What should I do if it is impossible?

like this func : void SetPlayerData(string playFabPlayerId, string Value)

Comment
LeeJungYeul

People who like this

1 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Andy · Oct 01, 2018 at 05:48 PM

I'm not sure I entirely follow your scenario, so if I misunderstand, could you please explain it in more detail? I think you want to create functionality that will remove some currency from one player and grant it to another. This can be accomplished through our server API from either Cloud Script or a dedicated server. The only prerequisite is that you have to know the ids of both players to be able to call the write data or virtual currency update methods.

Comment
LeeJungYeul

People who like this

1 Show 8 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image LeeJungYeul · Oct 01, 2018 at 09:02 PM 0
Share

yes correct. I find server API. so I can make this func now. However, the way I call it is for users to use server APIs. Is this going to be okay?

avatar image Andy ♦♦ LeeJungYeul · Oct 02, 2018 at 06:07 AM 1
Share

I wasn't sure whether you'd resolved this specific question. To be clear, you should not be calling the server API from your game client. It is meant to be called from Cloud Script or your own servers. Especially when it comes to transferring in-game resources from one player to another, you want the server to be authoritative of the transfer.

avatar image LeeJungYeul Andy ♦♦ · Oct 02, 2018 at 06:12 AM 0
Share

I've never used a cloud script. you says it needs to be called, but I don't know how to configure it. Do you have a tutorial to follow?

Show more comments
avatar image LeeJungYeul · Oct 01, 2018 at 09:09 PM 0
Share

If the Player wants to send money, it is a way of receiving and input another player ID

avatar image Andy ♦♦ LeeJungYeul · Oct 02, 2018 at 06:10 AM 0
Share

Right now, we don't provide a built-in way to notify players of things like this. You could either right to player data and periodically (and infrequently) query from the client, or you could facilitate it with a dedicated server. It depends on the architecture of your game. In the coming months, we will have an early release of our two-way communication feature. This should help with your scenario.

avatar image LeeJungYeul · Oct 01, 2018 at 09:48 PM 0
Share

Additionally, how do I use the Server API on Android?

avatar image LeeJungYeul LeeJungYeul · Oct 01, 2018 at 10:03 PM 0
Share

this problem is ended

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    How to handle winning and rewarding in a game? 1 Answer

    Does playfab have features allow user to store user's profile data in a database? 1 Answer

    [Help] Saving game data offline( sync with playfab), security risk 3 Answers

    How would I get another users' password? 1 Answer

    Storing custom game data specific to a player (card game example),Inventory management data structure in a card like game 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges