01.09.2016, 11:20
Quote:
Awesome, now I can instantly update to R40 when it comes out.
Btw is there any specific reason behind those change names? |
- Those two natives do basically the same (retrieve values from the active cache), yet they have completely unrelated names.
- When you first use cache_get_row, you might think it retrieves a whole row out of the result set, but it doesn't.
- cache_get_field_content has the word "field" in it, which refers to a column in MySQL terminology. Again, you don't retrieve the "content of a column".
Oh, and thanks to some preprocessor magic, you can omit the "_index" and "_value" part, e.g.
Code:
cache_get_value(0, 0, string); //will resolve to cache_get_value_index cache_get_value_float(0, "health", health); //will resolve to cache_get_value_name_float