Making PlayerKills -1 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Making PlayerKills -1 (
/showthread.php?tid=106498)
Making PlayerKills -1 -
Tigerbeast11 - 03.11.2009
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
Re: Making PlayerKills -1 -
Cezar - 03.11.2009
Try doing: PlayerKills[playerid]--;
Re: Making PlayerKills -1 -
Tigerbeast11 - 03.11.2009
Works!
Cheers!
Re: Making PlayerKills -1 -
Correlli - 03.11.2009
Or like this:
pawn Код:
PlayerKills[playerid] -= 1;
Re: Making PlayerKills -1 -
Tigerbeast11 - 04.11.2009
Thnk you!