[Tutorial] Updating BlueG's MySQL plugin R33+ scripts to R40
#7

Quote:
Originally Posted by PrO.GameR
View Post
Awesome, now I can instantly update to R40 when it comes out.
Btw is there any specific reason behind those change names?
I guess you're talking about cache_get_field_content and cache_get_row.
  1. Those two natives do basically the same (retrieve values from the active cache), yet they have completely unrelated names.
  2. When you first use cache_get_row, you might think it retrieves a whole row out of the result set, but it doesn't.
  3. 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".
Those two natives retrieve values from the cache, specified by an row index. One uses a column index, while the other one uses a column name to get the desired value. That's why they're named "cache_get_value_index" and "cache_get_value_name" now.

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
Reply


Messages In This Thread
Updating BlueG's MySQL plugin R33+ scripts to R40 - by maddinat0r - 31.08.2016, 13:46
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Shinja - 31.08.2016, 13:51
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by maddinat0r - 31.08.2016, 13:58
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by TommyB - 01.09.2016, 00:10
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by HydraHumza - 01.09.2016, 08:22
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by PrO.GameR - 01.09.2016, 10:53
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by maddinat0r - 01.09.2016, 11:20
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by nGen.SoNNy - 05.09.2016, 10:30
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by markparker12 - 05.09.2016, 10:33
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by MerryDeer - 05.09.2016, 16:43
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by vannesenn - 05.09.2016, 18:16
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by IstuntmanI - 05.09.2016, 18:20
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by vannesenn - 05.09.2016, 18:24
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by vannesenn - 05.09.2016, 19:29
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by nGen.SoNNy - 05.09.2016, 21:52
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Slawiii - 05.09.2016, 21:59
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Spmn - 05.09.2016, 22:03
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by maddinat0r - 06.09.2016, 07:37
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by DandyCorleone - 06.09.2016, 13:47
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Max_Andolini - 09.09.2016, 11:57
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Spmn - 09.09.2016, 14:05
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Slawiii - 16.09.2016, 18:46
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Kathleen - 21.09.2016, 14:04
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by saffierr - 09.12.2016, 14:51
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Konstantinos - 09.12.2016, 16:12
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by AroseKhanNiazi - 10.12.2016, 23:34
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by PapaSmerf - 19.12.2016, 08:55
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Konstantinos - 19.12.2016, 11:12
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by PapaSmerf - 19.12.2016, 11:29
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Konstantinos - 19.12.2016, 13:00
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Tenka - 20.12.2016, 08:57
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by PapaSmerf - 20.12.2016, 11:41
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Eloy - 22.12.2016, 17:34
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Konstantinos - 22.12.2016, 18:18
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Lordzy - 04.01.2017, 12:15
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Loinal - 07.01.2017, 17:43
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by t9ndep - 21.01.2017, 15:39
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by X337 - 21.01.2017, 15:44
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by t9ndep - 22.01.2017, 15:03
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Cypress - 27.01.2017, 12:52
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Lordzy - 27.01.2017, 13:02
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by maddinat0r - 28.01.2017, 13:46
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by Kruno88 - 08.10.2017, 12:06
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by StRaffael - 19.10.2018, 17:14
Re: Updating BlueG's MySQL plugin R33+ scripts to R40 - by KinderClans - 23.10.2018, 19:28

Forum Jump:


Users browsing this thread: 3 Guest(s)