[11:46:03] [debug] Server crashed while executing gr.amx
[11:46:03] [debug] AMX backtrace:
[11:46:03] [debug] #0 native fwrite () from samp03svr
[11:46:03] [debug] #1 0005d5f0 in ?? (23933148) from gr.amx
[11:46:03] [debug] #2 00063600 in public gOnPlayerText (0, 23917860) from gr.amx
[11:46:03] [debug] #3 native CallLocalFunction () from samp03svr
[11:46:03] [debug] #4 00000c08 in public OnPlayerText (0, 23917852) from gr.amx
[11:46:03] [debug] Native backtrace:
[11:46:03] [debug] #0 f73c1ca0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[11:46:03] [debug] #1 f73bad22 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[11:46:03] [debug] #2 f73bb314 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[11:46:03] [debug] #3 f73bd964 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[11:46:03] [debug] #4 f73c15cd in ?? () from plugins/crashdetect.so
[11:46:03] [debug] #5 f771ad50 in __kernel_rt_sigreturn () from linux-gate.so.1
[11:46:03] [debug] #6 f771ad70 in __kernel_vsyscall () from linux-gate.so.1
[11:46:03] [debug] #7 f7417367 in gsignal () from /lib32/libc.so.6
[11:46:03] [debug] #8 f7418a23 in abort () from /lib32/libc.so.6
[11:46:03] [debug] #9 f7410697 in ?? () from /lib32/libc.so.6
[11:46:03] [debug] #10 f7410747 in ?? () from /lib32/libc.so.6
[11:46:03] [debug] #11 0809b99c in ?? () from ./samp03svr
[11:46:03] [debug] #12 0809bdff in ?? () from ./samp03svr
[11:46:03] [debug] #13 080950e4 in ?? () from ./samp03svr
[11:46:03] [debug] #14 f73bc7b3 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[11:46:03] [debug] #15 00000001 in ?? () from �'n�H%n���1
[11:46:03] [debug] ��1
[11:46:03] [debug] ��1
[11:46:03] [debug] ��1
[11:46:03] [debug] 5�1
[11:46:03] [debug] ��1
[11:46:03] [debug] �n�
public OnPlayerText(playerid, text[])
{
//======================== Donator Chat =========================
if(DonChat[playerid] == 1)
{
new tstr[128];
new maxlen = floatround(((CHAT_WIDTH * 0.24)-strlen(SpielerName(playerid)))-1,floatround_ceil);
switch(DonChatFarbe[playerid])
{
case 0:
{
format(tstr,128,"%s~w~: %s",SpielerName(playerid),text);
}
case 1:
{
format(tstr,128,"~r~~h~~h~%s~w~: %s",SpielerName(playerid),text);
}
case 2:
{
format(tstr,128,"~y~%s~w~: %s",SpielerName(playerid),text);
}
case 3:
{
format(tstr,128,"~b~~h~%s~w~: %s",SpielerName(playerid),text);
}
case 4:
{
format(tstr,128,"~g~~h~~h~%s~w~: %s",SpielerName(playerid),text);
}
}
if(strlen(text) > maxlen)
{
SendClientMessagef(playerid,ROT,"Maximale Textlдnge ьberschritten(>>%d/%d<<)",strlen(text),maxlen);
}
else
{
new line = FreeChatLine();
format(ChatStr[line],128,tstr);
for(new i=0;i<10;i++)
{
TextDrawSetString(ChatLine[i],ChatStr[i]);
}
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(DonChat[playerid] == 1)
{
HideChatBox(i);
ShowChatBox(i);
}
}
}
return 0;
}
return 1;
}
PHP код:
|