Server crashes when player takes damage
#1

I have the line
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    InfoMessage(playerid, "YOU GOT SHOT!");
    return 1;
}
As soon as the callback is called, the server crashes. Crash detect isn't giving me any backtrace as to what is going on. If i comment out that bit, it doesn't crash.

I tried it on my local windows server, and it was all fine. So I changed the directory of the server on the linux box and put a fresh copy of everything in there, and it still crashes. I do get the following:

Код:
[17:48:53] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[17:48:54] [join] -----
[17:49:11] [debug] Server crashed while executing prp.amx
[17:49:11] [debug] AMX backtrace:
[17:49:11] [debug] #0 00000014 in ?? () from prp.amx
[17:49:11] [debug] #1 0002135c in ?? () from prp.amx
[17:49:11] [debug] #2 000156d4 in public OnPlayerTakeDamage () from prp.amx
[17:49:11] [debug] System backtrace:
Now, I've got the function Main in, in the first module of the script. It only does it when its on the actual linux server, and it doesnt actually provide me with a backtrace. I don't really have anything to go off of.
Reply


Messages In This Thread
Server crashes when player takes damage - by TakeiT - 10.01.2016, 22:01
Re: Server crashes when player takes damage - by ikey07 - 10.01.2016, 22:35
Re: Server crashes when player takes damage - by TakeiT - 10.01.2016, 23:11
Re: Server crashes when player takes damage - by yvoms - 10.01.2016, 23:17
Re: Server crashes when player takes damage - by TakeiT - 10.01.2016, 23:23
Re: Server crashes when player takes damage - by itsCody - 10.01.2016, 23:26
Re: Server crashes when player takes damage - by TakeiT - 10.01.2016, 23:27
Re: Server crashes when player takes damage - by itsCody - 10.01.2016, 23:31
Re: Server crashes when player takes damage - by TakeiT - 10.01.2016, 23:40
Re: Server crashes when player takes damage - by Mauzen - 10.01.2016, 23:44

Forum Jump:


Users browsing this thread: 1 Guest(s)