SA-MP Forums Archive
MySQL Updates - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL Updates (/showthread.php?tid=633975)



MySQL Updates - NealPeteros - 11.05.2017

Could I ask for a list of all the new versions of these functions?

Код:
error 017: undefined symbol "mysql_store_result"
error 017: undefined symbol "mysql_num_rows"
error 017: undefined symbol "mysql_free_result"
error 017: undefined symbol "mysql_store_result"
error 017: undefined symbol "mysql_fetch_row_format"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_free_result"
error 017: undefined symbol "mysql_store_result"
error 017: undefined symbol "mysql_num_rows"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_free_result"



Re: MySQL Updates - Vince - 11.05.2017

Possibly with the exception of mysql_num_rows (cache_num_rows()) there's pretty much no direct equivalent of these because of how the new system works. If you use threaded queries (recommended in almost all instances) then you need not explicitly store (Cache:var = mysql_query(...)) and free the result (cache_delete()) anymore. Fetch_row_format is completely obsolete, there is absolutely no equivalent. All necessary fields should now be fetched separately. I've never used "fetch_field_row" so I don't know what it does.


Re: MySQL Updates - NealPeteros - 11.05.2017

Thanks! 7 errors/unknown functions (yet) left

Код:
error 017: undefined symbol "mysql_store_result"
error 017: undefined symbol "mysql_store_result"
error 017: undefined symbol "mysql_fetch_row_format"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_fetch_field_row"
error 017: undefined symbol "mysql_store_result"
error 017: undefined symbol "mysql_fetch_field_row"