2 Errors [Dutils] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 2 Errors [Dutils] (
/showthread.php?tid=343689)
2 Errors [Dutils] -
RoleplayEditor - 18.05.2012
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.
Re: 2 Errors [Dutils] -
.FuneraL. - 18.05.2012
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.
Re: 2 Errors [Dutils] -
RoleplayEditor - 18.05.2012
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. :/
Re: 2 Errors [Dutils] -
Mark™ - 18.05.2012
"JB_SetPlayerMoney" is a JunkBuster native function from the JunkBuster include, it has nothing to do with dutils include.
Re: 2 Errors [Dutils] -
RoleplayEditor - 18.05.2012
Aw yeah! I know that but still my gamemode gives me these errors, i don't know why.
Re: 2 Errors [Dutils] -
ProjectGANTON - 18.05.2012
Just go line 202 and check where's the problem.
Re: 2 Errors [Dutils] -
RoleplayEditor - 19.05.2012
There's no problem in my gamemode, the problem is just in Junkbuster or dutils.
Re: 2 Errors [Dutils] -
Horrible - 19.05.2012
copy some code please ?
Re: 2 Errors [Dutils] -
RoleplayEditor - 19.05.2012
There's no fault in my gamemode. The error comes in
Dutils.inc and JB_SetPlayerCash comes under
JunkBuster.inc
Re: 2 Errors [Dutils] -
JaKe Elite - 19.05.2012
Код:
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
}