10.01.2016, 22:01
I have the line
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:
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.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { InfoMessage(playerid, "YOU GOT SHOT!"); return 1; }
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: