OnPlayerDeath problem. - 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: OnPlayerDeath problem. (
/showthread.php?tid=601952)
OnPlayerDeath problem. -
]Rafaellos[ - 29.02.2016
Hello guys, a weird bug came up and I don't really know why it's happening. For some reason my OnPlayerDeath doesn't get called and I don't know why. With a quick search, I found out that this maybe caused because killerid is invalid but, i have commented out everything and it doesn't get called either.
BUT in console, it does print the typical [death] Rafaellos died 255 and I'm not sure why it wont call OnPlayerDeath.
I Quick debug when I use /kill to test if it works, the only callback it gets called is OnPlayerSpawn.
Any help? I would be glad!
Re: OnPlayerDeath problem. -
BiosMarcel - 29.02.2016
show us your onplayerdeath
Re: OnPlayerDeath problem. -
]Rafaellos[ - 29.02.2016
As I said I commented everything inside OnPlayerDeath. It seems that there is a problem with newcallbacks by emmet. I removed it for a while and it seems that it's working now.