pScore - 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)
+--- Thread: pScore (
/showthread.php?tid=355685)
pScore -
StrangeLove - 30.06.2012
Anyone knows why this warnings occur?
Код:
.pwn(287) : warning 219: local variable "pScore" shadows a variable at a preceding level
.pwn(288) : warning 213: tag mismatch
.pwn(287) : warning 204: symbol is assigned a value that is never used: "pScore"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Here is the line 287 and 288
pawn Код:
287 new pScore = GetPlayerScore(killerid);
288 SetPlayerScore(killerid, pScore + 1 );
Re: pScore -
[A]ndrei - 30.06.2012
Код:
288 SetPlayerScore(playerid, pscore +1);
ass for line 287 i dont know...
Re: pScore -
StrangeLove - 30.06.2012
Quote:
Originally Posted by [A]ndrei
Код:
288 SetPlayerScore(playerid, pscore +1);
ass for line 287 i dont know...
|
This is under public OnPlayerDeath(playerid, killerid, reason)
I want to add 1 score to the killer, not to player that was killed.
Thanks for the reply though
Re: pScore -
iTorran - 30.06.2012
pawn Код:
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
Re: pScore -
StrangeLove - 30.06.2012
Fixed! Thanks for your help!
Re: pScore -
[A]ndrei - 30.06.2012
oh sorry about that then...i got the wrong idea :P anyways in that case
Код:
SetPlayerScore(killerid, GivePlayerScore +1);
Re: pScore -
StrangeLove - 30.06.2012
Quote:
Originally Posted by [A]ndrei
oh sorry about that then...i got the wrong idea :P anyways in that case
Код:
SetPlayerScore(killerid, GivePlayerScore +1);
|
No such GivePlayerScore
Anyway, Thanks