he2
started a topic on Tue, 12 May 2015 at 5:49 AM
Hello,
I'm trying to use SubtractUserVirtualCurrency in a cloud function, my server is configured as follow :
Client can't add/sub virtual currency
Client can't send user stats.
The function is called with RunCloudScript and the body looks like that :
server.SubtractUserVirtualCurrency({ PlayFabId: currentPlayerId, VirtualCurrency: KP, Amout: 100 });
This call fails and return : "ReferenceError: KP is not defined"
Of course, KP is defined as virtual currency. Is there something i'm missing here ?