SA-MP Forums Archive
cache_get_value - 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: cache_get_value (/showthread.php?tid=626796)



cache_get_value - MerryDeer - 20.01.2017

Hi,

If i get value string is very big, for ex my variable is 1000, but string is 2000, how to check if string will be bigger, than 1000 i don't want to get him


Re: cache_get_value - Misiur - 20.01.2017

Well, cache_get_value takes max_len parameter so it will always be constrained to the size of your array. You can limit your sql query though:
Quote:

SELECT mytext FROM mytexts WHERE LENGTH(mytext) <= 1000