mysql warnning
#1

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?
Reply
#2

This might help you >>HERE<<
Reply
#3

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

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.
Reply
#5

What it's mysql error
Reply
#6

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.
Reply
#7

It's strange, i use escaping with 400
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)