SA-MP Forums Archive
Score.?? - 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: Score.?? (/showthread.php?tid=152356)



Score.?? - Ihsan_Cingisiz - 03.06.2010

Hello, i want to make a score for Zombies and Humans i use this
but i get error, i don't know what to do..

Quote:

new pHumanScore;
new pZombieScore;


public OnPlayerDeath(playerid, killerid, reason)
{
if(pZombie[playerid] == 1) {
pHumanScore = +1;
}
if(pHuman[playerid] == 1) {
pZombieScore = +1;
}

return 1;
}

But i get these errors
Quote:

C:\Users\-\Desktop\Server\gamemodes\ZombieOutbreak.pwn(82) : error 029: invalid expression, assumed zero
C:\Users\-\Desktop\Server\gamemodes\ZombieOutbreak.pwn(82) : warning 215: expression has no effect
C:\Users\-\Desktop\Server\gamemodes\ZombieOutbreak.pwn(85) : error 029: invalid expression, assumed zero
C:\Users\-\Desktop\Server\gamemodes\ZombieOutbreak.pwn(85) : warning 215: expression has no effect
C:\Users\-\Desktop\Server\gamemodes\ZombieOutbreak.pwn(82) : warning 204: symbol is assigned a value that is never used: "pHumanScore"
C:\Users\-\Desktop\Server\gamemodes\ZombieOutbreak.pwn(85) : warning 204: symbol is assigned a value that is never used: "pZombieScore"




Re: Score.?? - Conroy - 03.06.2010

= +1

+= 1


Re: Score.?? - Ihsan_Cingisiz - 03.06.2010

Quote:
Originally Posted by Conroy
= +1

+= 1
Oh right!
Thanks man!!!