Cruiser
Ученик
Подскажите из - за чего crashdetect может выдавать такое:
Может как то не так я делаю функцию cache_get_field_content. У меня вот так:
И таких строчек всего в public LoginCallback 109
Вот то чем вызывается public LoginCallback:
Может кто то уже сталкивался с таким, или знает решение проблемы?
P.S. MySQL R7
PHP:
[debug] Server crashed while executing samp.amx
[debug] AMX backtrace:
[debug] #0 native cache_get_field_content () [009933e0] from mysql.so
[debug] #1 00087584 in public LoginCallback (0x0000002e, 0x007aba1c) from samp.amx
[debug] Native backtrace:
[debug] #0 00d9a60b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[debug] #1 00d91e92 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[debug] #2 00d938d9 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[debug] #3 00d9a2a0 in ?? () from plugins/crashdetect.so
[debug] #4 00377410 in ?? ()
[debug] #5 00ea3526 in ?? () from /lib/libc.so.6
[debug] #6 0098ce1b in _ZN6StrAmx10SetCStringEP6tagAMXiPc () from plugins/mysql.so
[debug] #7 00993537 in _ZN7Natives25n_cache_get_field_contentEP6tagAMXPi () from plugins/mysql.so
[debug] #8 080938e4 in ?? () from ./samp03svr
[debug] #9 00d915fc in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[debug] #10 00d9615c in ?? () from plugins/crashdetect.so
[debug] #11 00d9e64d in amx_Exec () from plugins/crashdetect.so
[debug] #12 00d93abb in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[debug] #13 00d96100 in ?? () from plugins/crashdetect.so
[debug] #14 00996361 in amx_Exec () from plugins/mysql.so
[debug] #15 0099755a in ProcessTick () from plugins/mysql.so
[debug] #16 080c5a32 in ?? () from ./samp03svr
[debug] #17 080b57fc in ?? () from ./samp03svr
[debug] #18 080b10a3 in ?? () from ./samp03svr
[debug] #19 00e3ce36 in __libc_start_main () from /lib/libc.so.6
[debug] #20 0804b521 in ?? () from ./samp03svr
PHP:
cache_get_field_content(0, "Level", maximum), PlayerInfo[i][pLevel] = strval(maximum);
cache_get_field_content(0, "AdminLevel", maximum), PlayerInfo[i][pAdmin] = strval(maximum);
cache_get_field_content(0, "DonateRank", maximum), PlayerInfo[i][pDonateRank] = strval(maximum);
cache_get_field_content(0, "DonateRankTime", maximum), PlayerInfo[i][pDonateRankTime] = strval(maximum);
cache_get_field_content(0, "UpgradePoints", maximum), PlayerInfo[i][gPupgrade] = strval(maximum);
cache_get_field_content(0, "ConnectedTime", maximum), PlayerInfo[i][pConnectTime] = strval(maximum);
cache_get_field_content(0, "Sex", maximum), PlayerInfo[i][pSex] = strval(maximum);
cache_get_field_content(0, "Age", maximum), PlayerInfo[i][pAge] = strval(maximum);
Вот то чем вызывается public LoginCallback:
PHP:
stock OnPlayerLogin(i, password[])
{
new str[256];
format(str, sizeof(str),"SELECT * FROM `Accounts` WHERE `Name` = '%s' AND `Key` = '%s'", Name(i), password);
mysql_function_query(connectionHandle, str, true, "LoginCallback","ds", i, password);
return 1;
}
P.S. MySQL R7
