Server crashes - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Server crashes (
/showthread.php?tid=116050)
Server crashes -
dawidek11 - 27.12.2009
Hi, my server crashes several times, I think that it could be because of these warning that I've got. There is about 200 of them, but i'm too lazy to solve it. I saw somewhere here something that saves every fart, any command you typed etc. but I can't find it. If you find something like this, could you give me a link to it? Thanks
Re: Server crashes -
Grim_ - 27.12.2009
Show us the warnings and maybe we could help you.
Also, what do you mean?
Re: Server crashes -
dawidek11 - 27.12.2009
Quote:
|
Originally Posted by _Xerxes_
Show us the warnings and maybe we could help you.
Also, what do you mean?
|
I mean that I'm looking for something, filterscript or whatever, which will save anything that I've typed while I'm on the server, coz it could help me to find out if perhaps some of the commands crash my server.
Warnings:
http://paste-it.net/public/j26f6e3/
Re: Server crashes -
Grim_ - 27.12.2009
Here's how you would save text messages people have written into a file.
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128], name[24], entry[256];
format(string, sizeof(string), "%s(%i): %s", GetPlayerName(playerid, name, sizeof(name)), playerid, text);
format(entry, sizeof(entry), "%s\r\n", string);
new File:file;
file = fopen("Text", io_append);
if(file)
{
fwrite(file, string);
fclose(file);
}
return 1;
}
EDIT:
Most if not all of those warnings are saying that the variables appear twice. That meaning, you most likely have a global variable of that variable, and then created it later inside a specific callback/function.
Re: Server crashes -
dawidek11 - 27.12.2009
thanks