04.03.2013, 11:29
Hi guys,
whats the best way to save a single row in a MySQL-database?
There are 109 rows to update (each Player, each account).
1. format a > 2500 string, concatenates the string with strcat, and send as a query?
2. Sending 5 Querys, with a length of ~500?
3. Or Sending 109 Querys, with a length of ~50?
I tried to do this in one query (1), with a 2500-big-string, but my Server has got a few
problems with it (crashdetect, see below).
whats the best way to save a single row in a MySQL-database?
There are 109 rows to update (each Player, each account).
1. format a > 2500 string, concatenates the string with strcat, and send as a query?
2. Sending 5 Querys, with a length of ~500?
3. Or Sending 109 Querys, with a length of ~50?
I tried to do this in one query (1), with a 2500-big-string, but my Server has got a few
problems with it (crashdetect, see below).
Код:
[23:19:32] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)" [23:19:32] [debug] Stack pointer (STK) is 0x30EFF8, heap pointer (HEA) is 0x30F6EC [23:19:32] [debug] AMX backtrace: [23:19:32] [debug] #0 ???????? in public JB_OnPlayerDisconnect () from lssf.amx [23:19:32] [debug] #1 native CallLocalFunction () [00471e90] from samp-server.exe [23:19:32] [debug] #2 ???????? in public Streamer_OnPlayerDisconnect () from lssf.amx [23:19:32] [debug] #3 native CallLocalFunction () [00471e90] from samp-server.exe [23:19:32] [debug] #4 ???????? in public OnPlayerDisconnect () from lssf.amx [23:19:32] [debug] #5 native Ban () [0046ef20] from samp-server.exe [23:19:32] [debug] #6 ???????? in public JB_OnPlayerCommandText () from lssf.amx [23:19:32] [debug] #7 native CallLocalFunction () [00471e90] from samp-server.exe [23:19:32] [debug] #8 ???????? in public OnPlayerCommandText () from lssf.amx