Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Error 025: function heading differs from prototype

 
  • 0 Vote(s) - 0 Average
Pawn Error 025: function heading differs from prototype
Ryder Sixz
Offline

Burgershot Member
Posts: 28
Threads: 10
Joined: Nov 2020
Reputation: 0
Location: San Andreas
#1
2020-11-11, 05:07 PM (This post was last modified: 2020-11-11, 05:44 PM by Ryder Sixz.)
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
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#2
2020-11-11, 05:40 PM (This post was last modified: 2020-11-11, 05:41 PM by Pinch.)
[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.
Ryder Sixz
Offline

Burgershot Member
Posts: 28
Threads: 10
Joined: Nov 2020
Reputation: 0
Location: San Andreas
#3
2020-11-11, 06:05 PM
(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);
}
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#4
2020-11-11, 06:07 PM
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.
Ryder Sixz
Offline

Burgershot Member
Posts: 28
Threads: 10
Joined: Nov 2020
Reputation: 0
Location: San Andreas
#5
2020-11-11, 06:26 PM
(2020-11-11, 06:07 PM)Pinch Wrote: You probably already have GetPlayerSpeed in your gamemode

I will check it, thanks.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode