Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
Why not show us the whole code of that part?
Also, this should be posted in scripting discussion, but not this topic. This is a thread for crashdetect plugin, but not a thread for asking scripting questions.
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
Are you using any other plugins? They can cause this problem if they don't have the latest version of sampgdk.
Posts: 2,938
Threads: 162
Joined: May 2010
pawn Код:
[07/12/2011 19:33:19] Loaded.
[07/12/2011 19:33:19] Loading plugin: crashdetect
[07/12/2011 19:33:19] It looks like amx_Exec() is already hooked by RouteConnectorPlugin.dll.
[07/12/2011 19:33:19] The runtime error detection feature will be disabled during this run.
[07/12/2011 19:33:19] Loaded.
erm, how can I bypass this, I need the runtime error detection and RouteConnectorPlugin
Posts: 2,938
Threads: 162
Joined: May 2010
10.12.2011, 00:00
(
Последний раз редактировалось Kar; 10.12.2011 в 06:06.
)
pawn Код:
stock SendClientMessageFormatted(playerid, color, fstring[], {Float, _}:...)
{
static const STATIC_ARGS = 3;
new n = (numargs() - STATIC_ARGS) * BYTES_PER_CELL;
if(n)
{
new message[144], arg_start, arg_end;
#emit CONST.alt fstring
#emit LCTRL 5
#emit ADD
#emit STOR.S.pri arg_start
#emit LOAD.S.alt n
#emit ADD
#emit STOR.S.pri arg_end
do
{
#emit LOAD.I
#emit PUSH.pri
arg_end -= BYTES_PER_CELL;
#emit LOAD.S.pri arg_end
}
while(arg_end > arg_start);
#emit PUSH.S fstring
#emit PUSH.C 144
#emit PUSH.ADR message
n += BYTES_PER_CELL * 3;
#emit PUSH.S n
#emit SYSREQ.C format
//n += BYTES_PER_CELL;
#emit LCTRL 4
#emit LOAD.S.alt n
#emit ADD
#emit SCTRL 4
if(playerid == INVALID_PLAYER_ID)
{
#pragma unused playerid
return SendClientMessageToAll(color, message);
} else {
return SendClientMessage(playerid, color, message);
}
} else {
if(playerid == INVALID_PLAYER_ID)
{
#pragma unused playerid
return SendClientMessageToAll(color, fstring);
} else {
return SendClientMessage(playerid, color, fstring);
}
}
}
pawn Код:
Server crash caused by native format() called at line 29411
pawn Код:
#emit SYSREQ.C format
n += BYTES_PER_CELL;//29411
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Kar
pawn Код:
stock SendClientMessageFormatted(playerid, color, fstring[], {Float, _}:...) { static const STATIC_ARGS = 3; new n = (numargs() - STATIC_ARGS) * BYTES_PER_CELL; if(n) { new message[144], arg_start, arg_end; #emit CONST.alt fstring #emit LCTRL 5 #emit ADD #emit STOR.S.pri arg_start
#emit LOAD.S.alt n #emit ADD #emit STOR.S.pri arg_end do { #emit LOAD.I #emit PUSH.pri arg_end -= BYTES_PER_CELL; #emit LOAD.S.pri arg_end } while(arg_end > arg_start);
#emit PUSH.S fstring #emit PUSH.C 144 #emit PUSH.ADR message
n += BYTES_PER_CELL * 3; #emit PUSH.S n #emit SYSREQ.C format
//n += BYTES_PER_CELL; #emit LCTRL 4 #emit LOAD.S.alt n #emit ADD #emit SCTRL 4
if(playerid == INVALID_PLAYER_ID) { #pragma unused playerid return SendClientMessageToAll(color, message); } else { return SendClientMessage(playerid, color, message); } } else { if(playerid == INVALID_PLAYER_ID) { #pragma unused playerid return SendClientMessageToAll(color, fstring); } else { return SendClientMessage(playerid, color, fstring); } } }
pawn Код:
Server crash caused by native format() called at line 29411
pawn Код:
#emit SYSREQ.C format
n += BYTES_PER_CELL;//29411
|
Do you use format() in other areas of your script? I particularly remember there being a problem where if you used that function, you needed to use format() elsewhere in your script.
Posts: 2,938
Threads: 162
Joined: May 2010
10.12.2011, 11:10
(
Последний раз редактировалось Kar; 10.12.2011 в 12:39.
)
of course, maybe I need to call format before it using it? like to initialize it?
edit: the first "scmf" is in onplayerconnect, I called it after a format, and there are formats in OnGameModeInit and still crashed
pawn Код:
[08:25:54] Loaded debug info from 'gamemodes\CNR.amx'
[08:27:46] Server crash caused by native format() called at line 29422 in 'C:\Documents and Settings\My Documents\Grand Theft Auto San Andreas\SA-MP SERVER(CNR)\gamemodes\CNR.pwn'
[08:27:46] Call stack (most recent call first):
[08:27:46] File 'C:\Documents and Settings\My Documents\Grand Theft Auto San Andreas\SA-MP SERVER(CNR)\gamemodes\CNR.pwn', line 10852
[08:27:46] SendClientMessageFormatted(playerid=65535, color=-741092353, fstring[]=@0x146c3c)
[08:27:46] File 'C:\Documents and Settings\My Documents\Grand Theft Auto San Andreas\SA-MP SERVER(CNR)\gamemodes\CNR.pwn'
[08:27:46] public Itter_OnPlayerConnect(playerid=65535)
Edit: It seems like it's only called in OnPlayerConnect..
Posts: 526
Threads: 29
Joined: May 2009
Iґm loaded the plugin whith crashdetect ultimate version and & compile in -d3 but only says
Loaded debug info from "gamemodes\spcrt.amx"
crashdetect.log
[23:57:59]:
[23:57:59]: --- crashdetect 3.6.12 loaded.
[23:57:59]: Loaded debug info from 'gamemodes\spcrt.amx'
[23:59:01]: Unloaded.
Any Errors?
Posts: 125
Threads: 9
Joined: Oct 2011
Reputation:
0
This means that you do not have errors. _.
Posts: 265
Threads: 39
Joined: Apr 2009
Reputation:
0
I installed the version 3.6.11.0, becouse my server sometimes crashes. I recompiled all of my used scripts with the '-d3' flag. My server starts, runs okay, but when it crashes, I only can find in the crashdetect's log, that the debug info is loaded from all script. Why it prints nothing? Should I try an other flag?
Please help me, if You can!
Thanks!