HTML Code:
public ctwin()
{
CTrounds++;
//return CTrounds;
}
public twin()
{
Trounds++;
//return Trounds;
}
public cmdScore( id )
{
CTrounds = ctwin();
Trounds = twin();
}
How can I get the return value of those functions, without modifying the variables in the process?
I mean, if I try to get Trounds in the cmdScore function, it will also add 1 to the variable value.