AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SQLX mysql size var (https://forums.alliedmods.net/showthread.php?t=329808)

loiraolhosazul 01-08-2021 23:43

SQLX mysql size var
 
my problem is that I need to save a text with many characters, the problem is in amxmodx, the limit is 3072, in mysql there is no problem,

My text would look something like this: 0 1 2 3 4 5 6 7 etc
but the maximum limit is 3072.

new data [3072]

any suggestions for me to save this data and load it?

CrazY. 01-09-2021 08:06

Re: SQLX mysql size var
 
You could just increase the size of the buffer. In your case, instead of new data[3072] you could initialize with a size of 9999 or any number that fits your needs. I've tested and seems to work, I misunderstood what you meant with "the maximum limit is 3072".

Natsheh 01-09-2021 08:26

Re: SQLX mysql size var
 
that it depends if he's using windows 98 and 100megabyte ram which wont even run cs 1.6

loiraolhosazul 01-09-2021 14:58

Re: SQLX mysql size var
 
Quote:

Originally Posted by CrazY. (Post 2731915)
You could just increase the size of the buffer. In your case, instead of new data[3072] you could initialize with a size of 9999 or any number that fits your needs. I've tested and seems to work, I misunderstood what you meant with "the maximum limit is 3072".

it doesn't work, let's assume that the data in my table has more than 3072 characters, if I take the data from sql amxmodx itself cuts the data because the length is greater, the length of my text is greater than 3072

bp
não funciona, vamos supor que os dados da minha tabela tem mais que 3072 caracteres, se eu pegar os dados do sql o proprio amxmodx corta os dados pois o comprimento é maior, o comprimento do meu texto é maior que 3072


All times are GMT -4. The time now is 14:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.