SA-MP Forums Archive
help Rep+ - 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: help Rep+ (/showthread.php?tid=358269)



stock SetPlayerMoney Problems [Rep+] - Devilxz97 - 10.07.2012

Hey guys how can i fix this ?

Код:
C:\Users\user\Desktop\SAMP\pawno\include\dutils.inc(202) : warning 209: function "SetPlayerMoney" should return a value
C:\Users\user\Desktop\NBDM.pwn(395) : error 025: function heading differs from prototype
C:\Users\user\Desktop\NBDM.pwn(396) : error 021: symbol already defined: "SetPlayerMoney"
pawn Код:
stock SetPlayerMoney(playerid, money)
{
    ResetPlayerMoney(playerid);
    return GivePlayerMoney(playerid, money);
}
line 395
pawn Код:
stock SetPlayerMoney(playerid, money)
pawn Код:
stock SetPlayerMoney(playerid, money)
{ < -- line 396



Re: help Rep+ - coole210 - 10.07.2012

As you see here:

Код:
SAMP\pawno\include\dutils.inc(202) : warning 209: function "SetPlayerMoney" should return a value
SetPlayerMoney already exists in dutils.inc, and it has a warning.


Re: help Rep+ - Devilxz97 - 10.07.2012

oh shit forgot bout it thanks again Rep+