SA-MP Forums Archive
mysql warnning - 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 warnning (/showthread.php?tid=617693)



mysql warnning - MerryDeer - 25.09.2016

Hi,

Код:
 [plugins/mysql] mysql_escape_string: destination array too small (needs at least '39' cells; has only '30')
What i have to do in code to get this error or warning?


Re: mysql warnning - BadScripter - 25.09.2016

This might help you >>HERE<<


Re: mysql warnning - DrVenomous - 25.09.2016

https://sampforum.blast.hk/showthread.php?tid=318212 check this out. If I helped you, then REP+


Re: mysql warnning - Sew_Sumi - 25.09.2016

Get out of here with your rep begging.

Quote:
Originally Posted by maddinat0r
Посмотреть сообщение
You're probably passing an enum string. In that case you have to specify the size manually.



Re: mysql warnning - MerryDeer - 25.09.2016

What it's mysql error


Re: mysql warnning - PrO.GameR - 25.09.2016

Quote:
Originally Posted by MerryDeer
Посмотреть сообщение
What it's mysql error
It's perfectly obvious! your string has the size of 30, when it needs 39, make the string you are escaping into 39-40 and problem will be solved.
How do you not understand that one line of a perfect explanation then come here asking help from people with sub-par English?

PS: by the looks of it thats you escaping player name tho, 30 chars is MAX_PLAYER_NAME.


Re: mysql warnning - MerryDeer - 10.10.2016

It's strange, i use escaping with 400


Re: mysql warnning - BurnZ - 10.10.2016

This error is so obvious to the point I asked my friend who got very little scripting and he answered the string needs to be 39.