[Pawn] [OMP] Errors compiling - 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] [OMP] Errors compiling (/showthread.php?tid=2347) |
[OMP] Errors compiling - leoclose575 - 2023-01-27 Hello, I tried to compile samp gamemode with open.mp and encountered errors and warning that I can't find anywhere in docs public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) ------> error 025: function heading differs from prototype warning 213: tag mismatch: expected tag "t_KEY", but found none ("_") public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) ----------> error 025: function heading differs from prototype GivePlayerWeapon(playerid, 31, 15); ------------------> warning 213: tag mismatch: expected tag "t_WEAPON", but found none ("_") RE: [OMP] Errors compiling - Y_Less - 2023-02-06 The first one use: PHP Code: public OnPlayerKeyStateChange(playerid, KEY:newkeys, KEY:oldkeys) The second one I'm not sure, the code looks correct. Double-check by copying this: PHP Code: public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) IF that doesn't work it could be a library incorrectly hooking the calback. PHP Code: GivePlayerWeapon(playerid, WEAPON_M4, 15) RE: [OMP] Errors compiling - db263856 - 2024-02-01 PHP Code: public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hitid, Float:fX, Float:fY, Float:fZ) RE: [OMP] Errors compiling - db263856 - 2024-02-01 Ребята вы красавчики!Спасибо вам за старания! |