[Pawn] Default Open.MP server return compiler error on default samp public callbacks. - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] Default Open.MP server return compiler error on default samp public callbacks. (/showthread.php?tid=2554) |
Default Open.MP server return compiler error on default samp public callbacks. - J0nathan550 - 2024-01-18 Hello everyone! I installed the latest release of the OpenMP server. And when I tried to compile blank gamemode to just see how it all works, it give me the error on Default SAMP functions like, OnPlayerDeath and etc. Because as I understand they are already defined somewhere in `open.mp` include. Error is: error 025: function heading differs from prototype This error get fired up when I call default `public OnPlayerDeath`, and I don't know what to do, I really need this callback. I hope you will help me. RE: Default Open.MP server return compiler error on default samp public callbacks. - J0nathan550 - 2024-01-18 Quick Update: I read about YSI, and turns out I had to use OnPlayerDeath as OnPlayerDeathEx, not sure if this is correct or not, I did not test it yet. Here is the current code: Code: forward OnPlayerDeathEx(playerid, killerid, reason); RE: Default Open.MP server return compiler error on default samp public callbacks. - J0nathan550 - 2024-01-18 Nope, was not like this. I found this cool github link to all open.mp issues. Here is the updated, code. Code: public OnPlayerDeath(playerid, killerid, WEAPON:reason) Problem was that I was not specifying the WEAPON type. RE: Default Open.MP server return compiler error on default samp public callbacks. - Mido - 2024-01-22 Good, you figured that out |