Why are there so few "return" functions with SA:MP?
#9

Quote:
Originally Posted by AndreT
View Post
@ CaveDweller: perhaps that's not what actually happens, even if simplified. I would assume that one line of GetPlayerHealth does not actually trigger a packet exchange between the server and the client, but returns the known health value which is updated when the client's health changes. But alright, enough of that...
Yeah I wasn't sure if it was updated whenever the function was called (which would make sense but could cause strain on the server if you were to index the health of 500 online players at once).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)