OnPlayerDeath Problem
#1

Hello, everyone and thanks for the help in advance, basically I am trying to make a script where it checks if a killerid is a zombie or not, in which I defined under enum playerstatistics as depending if they are a zombie or not will show a different result. So how would I display this

Код:
if(killerid == Player[playerid][Zombie] == 1)
Obviously the above doesn't work as it appears as a tag mismatch, but how would a piece of code like this be written?
Reply
#2

Код:
if((killerid, Player[playerid][Zombie]) == 1
Displayed it like this, will this work?
Reply
#3

Should be like this..

pawn Код:
if(Player[killerid][Zombie] == 1)
Код:
With this, you was comparing to see if the killers id has matched the value inside Zombie.
pawn Код:
if(killerid == Player[playerid][Zombie] == 1)
Reply
#4

Awesome, I should have noticed, I feel dumb now. Thank you.
Reply
#5

Код:
if(killerid == Player[playerid][Zombie])
{
  //rest of the code here.
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)