shop_leave_rating(text, yes_string, no_string, url)
Argument | Description |
---|---|
text | Text that appears on the dialogue. |
yes_string | Text that appears on the "yes" button. |
no_string | Text that appears on the "no" button. |
url | The full URL where the comment has to be sent. |
Returns: N/A
This function opens up an OS dependant dialogue where you can
ask the user to post a rating or comment to a particular page. You
can define the text that is to appear in the dialogue, as well as
the text you wish to appear on the two buttons and the URL where
the comment has to be posted.
NOTE: This function is only for Android and iOS
targets.
if timer <= 0
{
shop_leave_rating("Thanks for playing the game!
Why not leave a comment?", "Okay!", "Not Today!",
"http://MacSweeney/comments");
timer = 10000000;
}
else
{
timer -= 1;
}
The above code will ask the user to leave a comment if the variable "timer" has counted down to 0.