[debug] Server crashed.
#1

Hello world!)
Quote:

[16:13:10] [debug] Server crashed while executing entservGM.amx
[16:13:10] [debug] AMX backtrace:
[16:13:10] [debug] #0 native SetTimerEx () from samp03svr
[16:13:10] [debug] #1 0015bd10 in public PlayerExitDrift (playerid=14) at C:\Users\Desktop\gamemodes\entservGM.pwn:26802
[16:13:10] [debug] Native backtrace:
[16:13:10] [debug] #0 f7355e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[16:13:10] [debug] #1 f734ebcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[16:13:10] [debug] #2 f734fdbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[16:13:10] [debug] #3 f7350226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[16:13:10] [debug] #4 f7355adc in ?? () from plugins/crashdetect.so
[16:13:10] [debug] #5 f774dd60 in __kernel_rt_sigreturn () from linux-gate.so.1
[16:13:10] [debug] #6 f774dd39 in __kernel_vsyscall () from linux-gate.so.1
[16:13:10] [debug] #7 f73a6dc0 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[16:13:10] [debug] #8 f73a8287 in abort () from /lib/i386-linux-gnu/libc.so.6
[16:13:10] [debug] #9 f73e237f in ?? () from /lib/i386-linux-gnu/libc.so.6
[16:13:10] [debug] #10 f73e8fb7 in ?? () from /lib/i386-linux-gnu/libc.so.6
[16:13:10] [debug] #11 f73eae52 in ?? () from /lib/i386-linux-gnu/libc.so.6
[16:13:10] [debug] #12 f73eca25 in __libc_malloc () from /lib/i386-linux-gnu/libc.so.6
[16:13:10] [debug] #13 f76177a7 in _Znwj () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[16:13:10] [debug] #14 080ebf1c in ?? () from ./samp03svr
[16:13:10] [debug] #15 080ddfa7 in ?? () from ./samp03svr
[16:13:10] [debug] #16 080950e4 in ?? () from ./samp03svr
[16:13:10] [debug] #17 f735194b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:13:10] [debug] #18 f73548f8 in ?? () from plugins/crashdetect.so
[16:13:10] [debug] #19 f7358916 in amx_Exec () from plugins/crashdetect.so
[16:13:10] [debug] #20 f7350be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:13:10] [debug] #21 f7354659 in ?? () from plugins/crashdetect.so
[16:13:10] [debug] #22 f6657d36 in ?? () from plugins/streamer.so
[16:13:10] [debug] #23 080ebc05 in ?? () from ./samp03svr
[16:13:10] [debug] #24 080af03c in ?? () from ./samp03svr
[16:13:10] [debug] #25 080aa13a in ?? () from ./samp03svr
[16:13:10] [debug] #26 f7393276 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6

Quote:

forward PlayerExitDrift(playerid);
public PlayerExitDrift(playerid)
{
if(DriftPointsNow[playerid] > 5)
{
if(DriftPointsNow[playerid] > PlayerInfo[playerid][pBestDrift])
{
if(PlayerInfo[playerid][pBestDrift] == 0) PlayerInfo[playerid][pBestDrift] = DriftPointsNow[playerid];

new str[84];
form(str, Entserv"Вы побили собственный рекорд дрифта. Новый %d (Старый %d).", \
DriftPointsNow[playerid], PlayerInfo[playerid][pBestDrift]);
SendClientMessage(playerid, ENTSERV_COLOR, str);
}
new clanid = PlayerInfo[playerid][pBand];
if(clanid != NO_TEAM && clanid != -1) ClanInfo[clanid][pDrscore] += DriftPointsNow[playerid];
if(IsPlayerVIP(playerid)) GivePlayerMoney(playerid, ReturnProcent(DriftPointsNow[playerid], 115), true);
else GivePlayerMoney(playerid, DriftPointsNow[playerid], true);

PlayerInfo[playerid][pDrscore] += DriftPointsNow[playerid];
DriftPointsNow[playerid] = -1234;
}
PunktyDriftuGracza[playerid] = -1;
SteerLockExit(playerid);
SetTimerEx("DMCDP", 1000, false, "i", playerid);
return 1;
}

Quote:

forward DMCDP(playerid);
public DMCDP(playerid)
{
PlayerTextDrawSetString(playerid, DriftCounts[playerid][1],"__");
DriftPointsNow[playerid] = 0;
return 1;
}

Вопрос: нужно ли убивать таймеры без повторений? (repeating = false)
Question: i have to kill timer where (repeating = false)?
Reply
#2

Up! Please, help!
Reply
#3

Quote:

form(str, Entserv"Вы побили собственный рекорд дрифта. Новый %d (Старый %d).", \

Are you trying to use a format here?
Reply
#4

Quote:

Are you trying to use a format here?

#define form(%1, format(%1,sizeof(%1),
Sorry, but problem in SetTimerEx - standart function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)