There's no need to "pre-declare" all variables at the start of function.
If you want the variables to "reset", move the variable declarations to where you're using them, inside the loop:
for (int i=0;i<play_amt;i++)
{
int total = 0; // A new variable 'total', that starts at 0 each time through the loop.