problems with SetPVarInt
#1

i am trying to give server sided cash to the player when he kills someone, and to the player who died. But, when i try compiling my code

Quote:

\(2125) : error 029: invalid expression, assumed zero
(2125) : warning 215: expression has no effect
(2125) : error 001: expected token: ";", but found ")"
(2125) : error 029: invalid expression, assumed zero
(2125) : fatal error 107: too many error messages on one line

pawn Код:
if(reason != 49 || reason != 50)
    {
        GivePlayerMoney(playerid, 100);
        SetPVarInt(killerid, "pMoney", +=kMoney);
        SetPVarInt(playerid, "pMoney", -dMoney);
        ResetPlayerMoney(killerid);
        ResetPlayerMoney(playerid);
        GivePlayerMoney(killerid, GetPVarInt(playerid, "pMoney"));
        GivePlayerMoney(playerid, GetPVarInt(playerid, "pMoney"));
        spawned[playerid] = false;
i am dead tired, thus i can't figure out what is going, help pl0x
Reply


Messages In This Thread
problems with SetPVarInt - by GwENiko - 01.10.2014, 21:37
Re: problems with SetPVarInt - by ThePhenix - 01.10.2014, 21:39
Re: problems with SetPVarInt - by Pottus - 01.10.2014, 21:44

Forum Jump:


Users browsing this thread: 1 Guest(s)