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: [pawn]public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Ta linija je dobra, update include:
https://github.com/pawn-lang/samp-stdlib
https://github.com/pawn-lang/pawn-stdlib
[pawn]#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//[/pawn]Imas ovo?
Citat: Fergosonn poslato Jun 01, 2021, 21:15:48 POSLE PODNE
[pawn]#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//[/pawn]Imas ovo?
Imace to samo ako je retardiran...
Citat: Sage poslato Jun 01, 2021, 21:15:18 POSLE PODNE
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...
Citat: Deleted User poslato Jun 02, 2021, 18:33:50 POSLE PODNE
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... :D