View Single Post
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 09-01-2010 , 15:30   Re: Dividing the numbers in sourcemod
Reply With Quote #25

Quote:
Originally Posted by FaTony View Post
Also these natives would throw an error if client is not in game. I'd rather return bool and pass ratio by reference. Or return -1.0 on error, but I prefer bool.
You'd be writing very bad code if you didn't know if the client was in-game or not before trying to get his kill ratio. Besides, if the execution isn't stopped in this function, it will be when you try to print the ratio to the client.
__________________
plop
p3tsin is offline