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



Question about size - Brooks1 - 20.03.2019

Hello!
I want to ask if I have string with contains 3 characters, the length in Pawn needs to be 3 + 1 (+1 for the null terminator), but if I save this string in MySQL does it need my field in the database to be VARCHAR(3 + 1) or VARCHAR(3) is enough, because MySQL doesn't have null terminator unlike Pawn?


Re: Question about size - Kaliber - 21.03.2019

Right, that is corret

https://dev.mysql.com/doc/refman/8.0/en/char.html