View Single Post
  #5  
Old 02-23-2014, 05:01 PM
Davood
Discordant
 
Join Date: Jan 2005
Posts: 488
Default

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
__________________
----------
Demon Overlord of Alakamin
skype @ davoodinator
Reply With Quote