SA-MP Forums Archive
How big query? (string size)? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: How big query? (string size)? (/showthread.php?tid=200844)



How big query? (string size)? - ajwar - 19.12.2010

Hello, anyone who can explain me how big queries should be? example? How to know, how big string should i make?


Re: How big query? (string size)? - __ - 19.12.2010

It depends on the size of your query. Length of strings really do vary on the data you're inserting.

pawn Код:
new qSz_UpdateCats[46];
format(qSz_UpdateCats, sizeof(qSz_UpdateCats), "UPDATE Cats SET Food = '1' WHERE CatID = '%d'", MAX_PLAYER_NAME);
= 45 characters + 1.