OnPlayerTakeDamage - error 025

Započeo Djordjevic4
1. Jun 2021. Zaključano
860
pregleda
6
postova
Dzoni_Djordjevic
2
Street Runner
1. Jun 2021.
Problem(error/warning): Izbacuje mi "error 025: function heading differs from prototype" na liniji ispod, u pitanju je OnPlayerTakeDamage, gledao sam teme na forumu ali nista nisam mogao da uradim kako bi resio taj error.
Deo skripte:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
//
Sage
4
Enforcer
1. Jun 2021.
Ta linija je dobra, update include:

https://github.com/pawn-lang/samp-stdlib
https://github.com/pawn-lang/pawn-stdlib
Fergosonn
4
Made Man
1. Jun 2021.
#if defined _ALS_OnPlayerGiveDamage
#undef OnPlayerGiveDamage
#else
#define _ALS_OnPlayerGiveDamage
#endif
#define OnPlayerGiveDamage NULL_OnPlayerGiveDamage
#if defined NULL_OnPlayerGiveDamage
forward NULL_OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
#endif
#if defined _ALS_OnPlayerTakeDamage
#undef OnPlayerTakeDamage
#else
#define _ALS_OnPlayerTakeDamage
#endif
#define OnPlayerTakeDamage NULL_OnPlayerTakeDamage
#if defined NULL_OnPlayerTakeDamage
forward NULL_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
#endif//
Imas ovo?
Sage
4
Enforcer
2. Jun 2021.
Fergosonn wrote on June 1, 2021, 7:15 pm:
#if defined _ALS_OnPlayerGiveDamage
#undef OnPlayerGiveDamage
#else
#define _ALS_OnPlayerGiveDamage
#endif
#define OnPlayerGiveDamage NULL_OnPlayerGiveDamage
#if defined NULL_OnPlayerGiveDamage
forward NULL_OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart);
#endif
#if defined _ALS_OnPlayerTakeDamage
#undef OnPlayerTakeDamage
#else
#define _ALS_OnPlayerTakeDamage
#endif
#define OnPlayerTakeDamage NULL_OnPlayerTakeDamage
#if defined NULL_OnPlayerTakeDamage
forward NULL_OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
#endif//
Imas ovo?

Imace to samo ako je retardiran...
NegativeIQ
5
Kingpin
2. Jun 2021.
Sage wrote on June 1, 2021, 7:15 pm:
Ta linija je dobra, update include:

https://github.com/pawn-lang/samp-stdlib
https://github.com/pawn-lang/pawn-stdlib

Pre ce biti da ima u modu negde ili nekom drugom outdated includu drugacije argumente u funkciji, a ne bi me cudilo ni da mu je a_samp outdated posto kad pogledas ovde ljudi upload citav pawno folder zajedno sa modom inace nece umeti da compile niko...
Sage
4
Enforcer
2. Jun 2021.
Deleted User wrote on June 2, 2021, 4:33 pm:
Pre ce biti da ima u modu negde ili nekom drugom outdated includu drugacije argumente u funkciji, a ne bi me cudilo ni da mu je a_samp outdated posto kad pogledas ovde ljudi upload citav pawno folder zajedno sa modom inace nece umeti da compile niko...

Pretpostavio sam da je skinuo neki mod stariji od 0.3.7, obicno u takvim ima ovaj problem, moze biti i stariji weapon-config, ko ga jeb... 😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha