Server Crash - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server Crash (
/showthread.php?tid=501974)
Server Crash -
AroseKhanNiazi - 21.03.2014
Код:
[20:48:15] [debug] Server crashed while executing pro.amx
[20:48:15] [debug] AMX backtrace:
[20:48:15] [debug] #0 00000065 in ?? () from pro.amx
[20:48:15] [debug] #1 00000065 in public cmd_complain () from pro.amx
[20:48:15] [debug] #2 00014028 in ?? () from pro.amx
[20:48:15] [debug] #3 00005b9c in public OnPlayerCommandText () from pro.amx
[20:48:15] [debug] Native backtrace:
Re: Server Crash -
Carac - 21.03.2014
I think there is a problem with your /complain command, as I see the code.
Re: Server Crash -
AroseKhanNiazi - 21.03.2014
it occurs with different cmds this time it was complain last time /hog more back it was /warn
Re: Server Crash -
Lidor124 - 21.03.2014
Are you meant we need to guess your code?
Re: Server Crash -
Carac - 21.03.2014
Does it give warnings if you compile the script?
Re: Server Crash -
AroseKhanNiazi - 22.03.2014
no the only problem is there is no single warning but still crash
Re: Server Crash -
Equuuuin0X - 22.03.2014
We're not a witch who could guess your codes, we're flying blind here.
Give us some codes.
the /complain command
and OnPlayerCommandText
Re: Server Crash -
Konstantinos - 22.03.2014
Update crashdetect plugin in the latest version (if not already) which is 4.13:
https://github.com/Zeex/samp-plugin-...ases/tag/v4.13
Use debug info for more information such as lines:
https://github.com/Zeex/samp-plugin-...ith-debug-info
After done the above, re-compile and start the server. If it prints anything with [debug] prefix again, post your server log.
@Equuuuin0X: Before you edit your post, you said about nativechecker. Nativechecker is used only for run time error 19.
Re: Server Crash -
AroseKhanNiazi - 22.03.2014
i can't use the crash detect plugin i don't know but i can't get it's output and yeah the debug it's too much on the log and complain cmd
Код:
CMD:complain(playerid, params[])
{
new TargetID,complain[20];
new playername[MAX_PLAYER_NAME];
new targetname[MAX_PLAYER_NAME];
if(sscanf(params, "us", TargetID, complain)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /complain [id] [complain]");
if(TargetID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "* Player Is Not Connected.");
if(strlen(complain) < 5) return SendClientMessage(playerid, COLOR_RED, "* Enter Long Reason.");
new string [128];
SCM(playerid, COLOR_WHITE, "You Complaint Has Been Sent Successfully.");
format(string,sizeof(string),"Complaint: %s", complain);
SCM(playerid, COLOR_CYAN, string);
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo[i][Adminlevel] > 0)
{
new str[128];
GetPlayerName(playerid,playername,24);
GetPlayerName(TargetID,targetname,24);
format(str,sizeof(str),"*** New Complaint Received. Player: %s (%d) Has Reported Player: %s (%d). - COMPLAINT: %s", playername, playerid, targetname, TargetID, complain);
SCM(i, COLOR_HOTPINK, str);
print(str);
return 1;
}
}
}
return 1;
}
Re: Server Crash -
Konstantinos - 22.03.2014
I cannot help you without the help of crashdetect. I can find the problem if you use debug info and it prints some outputs but I cannot guess what causes it.