Server crashes
#1

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
Reply
#2

Show us the warnings and maybe we could help you.

Also, what do you mean?
Reply
#3

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/
Reply
#4

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.
Reply
#5

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)