SA-MP Forums Archive
SafeGivePlayerMoney Error - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SafeGivePlayerMoney Error (/showthread.php?tid=153323)



SafeGivePlayerMoney Error - Pawno_Scripter - 08.06.2010

hi everyone. i have this error on my script

pawn Код:
D:\Users\Administrator\Desktop\Breakdown Script\gamemodes\breakdownls.pwn(44088) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
at that line i have this script:


pawn Код:
stock SafeGivePlayerMoney(playerid, cash)
{
    PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + cash;
    return 1;
}



Re: SafeGivePlayerMoney Error - Sergei - 08.06.2010

You forwarded it and parameters aren't the same in forward and actualy function.

And also you can make it like this:
Код:
PlayerInfo[playerid][pCash] += cash;



Re: SafeGivePlayerMoney Error - Pawno_Scripter - 08.06.2010

thx