Code:
float distanse =sqrt(
((GetX() - buffs[slot].caston_x) * (GetX() - buffs[slot].caston_x)) +
((GetY() - buffs[slot].caston_y) * (GetY() - buffs[slot].caston_y)) +
((GetZ() - buffs[slot].caston_z) * (GetZ() - buffs[slot].caston_z)));
int distance = int(distanse);
i hacked that in.. lets see if it breaks things.
it didnt like running sqrt as an int because it didn't match some prerequisitie to insicate how to use sqrt int hat instance.. ambigiouous functions are bad mk