For those who experienced Overflow problem

The overflow issue can be solved by adding one more argument for IF statement to become:
if(!connectionToClient.connectionId == connectionID){return;}
if(currentHealth ==0){return;}
OR YOU CAN USE THIS ALSO

if(connectionToClient.connectionId == connectionID && currentHealth !=0)
{
DealDamage(currentHealth);
}

Privacy & Terms