open.mp forum
[Pawn] Error 025: function heading differs from prototype - 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] Error 025: function heading differs from prototype (/showthread.php?tid=1338)



Error 025: function heading differs from prototype - Ryder Sixz - 2020-11-11

Hello everyone! well I have a problem when adding a new include to my GameMode and it is that when compiling it throws me this error:??



Code:
\pawno\include\3DTryg.inc (1846): error 025: function heading differs from prototype

\pawno\include\3DTryg.inc(1846): error 021: symbol already defined: "JBC_GetPlayerSpeed"



The include adds new useful functions. And I have it below all the includes at the beginning of the code. Well, I would really appreciate knowing what I have to do to solve this problem. Greetings to all :D


RE: Error 025: function heading differs from prototype - Pinch - 2020-11-11

[Image: eye-of-Providence.jpg]

All seeing eye, please show us their includes!
...menacing...
Didn't work, can we know which function and which include?

Oh, I'm blind, 3DTryg
Which function tho?

Give us the (1846) from 3dTryg


RE: Error 025: function heading differs from prototype - Ryder Sixz - 2020-11-11

(2020-11-11, 05:40 PM)Pinch Wrote:
[Image: eye-of-Providence.jpg]



All seeing eye, please show us their includes!

...menacing...

Didn't work, can we know which function and which include?



Oh, I'm blind, 3DTryg

Which function tho?



Give us the (1846) from 3dTryg



[Image: NYV5L8d.jpg]



Here is the line, Thanks for the help? :'D?



Code:
Tryg3D::Function:: Float:GetPlayerSpeed(playerid){//here

new Float:x,Float:y,Float:z;

GetPlayerVelocity(playerid,x,y,z);

return floatmul(VectorSize(x,y,z),PLAYER_SPEED_MULTIPLIER);

}



RE: Error 025: function heading differs from prototype - Pinch - 2020-11-11

You probably already have GetPlayerSpeed in your gamemode


RE: Error 025: function heading differs from prototype - Ryder Sixz - 2020-11-11

(2020-11-11, 06:07 PM)Pinch Wrote: You probably already have GetPlayerSpeed in your gamemode



I will check it, thanks.