Score.??
#1

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"

Reply
#2

= +1

+= 1
Reply
#3

Quote:
Originally Posted by Conroy
= +1

+= 1
Oh right!
Thanks man!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)