Forum PayVault On Serverside: calling "give" and "consume" at the same time

Discussion and help relating to the PlayerIO payment solution, PayVault.

On Serverside: calling "give" and "consume" at the same time

Postby -Mani » October 22nd, 2011, 9:08 pm

Hey there,

I just wanted to ask, if it's okay to "give" and "consume" items at the same time for one user.
Should I wait until the give or consume is finished and then do the other command?
It's on the serverside not clientside, that could make a difference...

best regards,
Manuel Otto
-Mani
Paid Member
 
Posts: 83
Joined: April 11th, 2010, 6:13 pm

Re: On Serverside: calling "give" and "consume" at the same time

Postby Henrik » October 23rd, 2011, 12:35 pm

No, that's not possible simply because to consume an item you need to pass in the item itself to the Consume method, and you don't have the item until the Give method has returned.

But why go through PayVault at all? Why not just give the player the effect of consuming the item directly?
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to PayVault