• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Error 025: function heading differs from prototype
#1
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
  Reply
#2
[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
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply
#3
Big Grin 
(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);

}
  Reply
#4
You probably already have GetPlayerSpeed in your gamemode
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply
#5
(2020-11-11, 06:07 PM)Pinch Wrote: You probably already have GetPlayerSpeed in your gamemode



I will check it, thanks.
  Reply


Forum Jump: