Szerző Téma: error 025: function heading differs from prototype  (Megtekintve 985 alkalommal)

error 025: function heading differs from prototype
« Dátum: 2016. Július 23. - 19:09:02 »
0 Show voters
Holiday edit a szerverem és a pwn ezt írja error 025: function heading differs from prototype
Nem tudja mi a gond?Vagyis hogy lehetne megoldani? a 6567. sornál van:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)

Nem elérhető divkn

  • 3259
    • Profil megtekintése
error 025: function heading differs from prototype
« Válasz #1 Dátum: 2016. Július 23. - 22:19:24 »
0 Show voters
Gondolom a OnPlayerWeaponShot már egyszer definiálva van egy függvénykönyvtárban és a forward rész argumentumai nem egyeznek a módban lévővel. Nem tudom melyik módot szerkeszted, vagy hogy milyen függvénykönyvtárakat csatoltál a módhoz, annyi lenne hogy utána nézel OnPlayerWeaponShot eljárásnak minden függvénykönyvtárban, kivéve a_samp.inc, és keress olyat hogy forward OnPlayerWeaponShot(...), és azt a sort bemásolod a hibás sorba, csak \'forward\' helyett \'public\' legyen.
 

// Hibás. (error 025: function heading differs from prototype)
forward OnPlayerWeaponShot(playerid, weaponid2, hittype, hitid, Float:fX, Float:fY, Float:fZ);
public  OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
// Nincs probléma
forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);
public  OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)

Nem elérhető anGeL

  • Adminisztrátor
  • 2158
    • Profil megtekintése
error 025: function heading differs from prototype
« Válasz #2 Dátum: 2016. Július 23. - 22:34:28 »
+1 Show voters
Kiemelt téma van erre!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal