SA-MP Forums Archive
Question about cache_get_field_content_int - 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: Question about cache_get_field_content_int (/showthread.php?tid=621087)



Question about cache_get_field_content_int - Bailews - 06.11.2016

For example : hProperty[ houses ][ hID] = cache_get_field_content_int(i, "id");

It select only field from mysql but you can't chose from which table? What if I got two `id` in different tables which one will be selected then? Thank for explaining.


Re: Question about cache_get_field_content_int - Stinged - 06.11.2016

cache_* (except cache_delete and cache_set_active) can only be used when there is an active cache available.
And cache can only be available when a query runs successfully, so you select which table you want in that query.