#1

i dont get wat is wrong here

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid == INVALID_PLAYER_ID)
        {
        SetPVarFloat(playerid, "var", 0);
        }
        else
        {
        SetPVarFloat(killerid, "var", += 1);
        }
    return 1;
}
Reply
#2

pawn Код:
SetPVarInt(killerid ,"var", GetPVarInt(killerid, "var") + 1);
Reply
#3

thanks i gonna try it right now
Reply
#4

I make macro fnc for you...

pawn Код:
#define SetPVarIntEx(%0,%1,%2,%3) SetPVarInt(%0,%1, GetPVarInt(%0,%1) %2 %3)
Now you just need to make this

pawn Код:
SetPVarIntEx(killerid,"var",+,1); // +
SetPVarIntEx(killerid,"var",-,1); // -
Enjoy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)