Undefined Symbols
#7

GivePlayerCash and ProxDetector aren't included in a_samp.inc
The server does not know this function and it gives you some Erorrs.
You should create stock for GivePlayerCash and for ProxDetector.

GivePlayerCash is there, to protect your server from Cheaters. There is already a function is called GivePlayerMoney. Cheaters can hack money, but they can't play with the Server variable.
I'm sure you have pMoney variable in your enum.

pawn Код:
stock GivePlayerCash(playerid, amount)
{
    if(amount >= 0) // amount is higher or is than 0
    {
        PlayerInfo[playerid][pMoney] += amount; // I'm not 100 per cent sure is your variable pMoney or pCash
    }
    else
    {
        PlayerInfo[playerid][pMoney] -= amount;
    }
}
If you want you can use direct GivePlayerMoney.

I hope i helped you @MouseBreaker
Reply


Messages In This Thread
Undefined Symbols - by Zerovda - 20.11.2012, 10:41
Re: Undefined Symbols - by dr.lozer - 20.11.2012, 10:45
Re: Undefined Symbols - by HarryPotter - 20.11.2012, 10:48
Re: Undefined Symbols - by Zerovda - 20.11.2012, 10:54
Re: Undefined Symbols - by Zerovda - 20.11.2012, 10:57
Re: Undefined Symbols - by Red_Dragon. - 20.11.2012, 12:20
AW: Undefined Symbols - by Skimmer - 20.11.2012, 12:36
Re: Undefined Symbols - by Zerovda - 20.11.2012, 19:14

Forum Jump:


Users browsing this thread: 1 Guest(s)