Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Djordjevic4 poslato Jun 01, 2021, 20:46:50 POSLE PODNE

Naslov: OnPlayerTakeDamage - error 025
Poruka od: Djordjevic4 poslato Jun 01, 2021, 20:46:50 POSLE PODNE
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): //
Naslov: Odg: OnPlayerTakeDamage - error 025
Poruka od: 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
Naslov: Odg: OnPlayerTakeDamage - error 025
Poruka od: 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?
Naslov: Odg: OnPlayerTakeDamage - error 025
Poruka od: Sage poslato Jun 02, 2021, 10:27:55 PRE PODNE
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...
Naslov: Odg: OnPlayerTakeDamage - error 025
Poruka od: Bit Frosty poslato Jun 02, 2021, 18:33:50 POSLE PODNE
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...
Naslov: Odg: OnPlayerTakeDamage - error 025
Poruka od: Sage poslato Jun 02, 2021, 19:00:30 POSLE PODNE
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