2 Errors [Dutils]
#1

Everytime i try to compile my script i get the following errors even when there is no shit named JB_SetPlayerMoney in dutils.
pawn Код:
L:\Myserver'\pawno\include\dutils.inc(199) : error 025: function heading differs from prototype
L:\MyServer'
\pawno\include\dutils.inc(199) : error 021: symbol already defined: "JB_SetPlayerMoney"
L:\MyServer'\pawno\include\dutils.inc(202) : warning 209: function "JB_SetPlayerMoney" should return a value
Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#2

pawn Код:
L:\GenetiX'\pawno\include\dutils.inc(199) : error 025: function heading differs from prototype
L:\GenetiX'
\pawno\include\dutils.inc(199) : error 021: symbol already defined: "JB_SetPlayerMoney"
L:\GenetiX'\pawno\include\dutils.inc(202) : warning 209: function "JB_SetPlayerMoney" should return a value
Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase


2 Errors.
First Error: The parameters of the forward parameters are different from the public

Second Error : Symbol Defined, Change or Delete.

Third Errror : Place return 0; or return 1; the end of the function.
Reply
#3

I searched for it in my gamemode but still not able to find it. There is nothing named JB_SetPlayerMoney in my script or dutils. JB_SetPlayerMoney is used to Anticheat Include. :/
Reply
#4

"JB_SetPlayerMoney" is a JunkBuster native function from the JunkBuster include, it has nothing to do with dutils include.
Reply
#5

Aw yeah! I know that but still my gamemode gives me these errors, i don't know why.
Reply
#6

Just go line 202 and check where's the problem.
Reply
#7

There's no problem in my gamemode, the problem is just in Junkbuster or dutils.
Reply
#8

copy some code please ?
Reply
#9

There's no fault in my gamemode. The error comes in Dutils.inc and JB_SetPlayerCash comes under JunkBuster.inc
Reply
#10

Код:
warning 209: function "JB_SetPlayerMoney" should return a value
search for stock function JB_SetPlayerMoney put a return

Код:
error 021: symbol already defined: "JB_SetPlayerMoney"
there is already JB_SetPlayerMoney stock function remove it

Код:
error 025: function heading differs from prototype
Example:

Correct:

pawn Код:
forward KickMyAss(playerid);

public KickMyAss(playerid)
{
    //code
}
Wrong:

pawn Код:
forward KickMyAss(playerid);

public KickMyAss() //this part must have parameters playerid
{
    //code
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)