SafeGivePlayerMoney Error
#1

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;
}
Reply
#2

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;
Reply
#3

thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)