Making PlayerKills -1
#1

Hiya!

Im scripting a server and I need to make the Killers Kills Go Up 1 and The Players Kills go down 1. I will explain better...

Say I just killed someone, my kills should go up by 1 point. And the person who died should have 1 kill taken from them...

Here is the Code:
pawn Код:
PlayerKills[playerid]-1; //Set the murdered's kill count -1
            PlayerKills[killerid]++;
See what I mean?
But, It gives me error on first line saying:
Код:
expression has no effect
I hope you can help me with this prob...

Thnx
Reply
#2

Try doing: PlayerKills[playerid]--;
Reply
#3

Works!

Cheers!
Reply
#4

Or like this:
pawn Код:
PlayerKills[playerid] -= 1;
Reply
#5

Thnk you!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)