OnPlayerDeath
#11

Quote:
Originally Posted by Djumza
View Post
Sorry for double post, but this line:

Code:
if(gTeam[playerid] != TEAM_COP || gTeam[playerid] != TEAM_ARMY)
Is this written good ? if ( playerid is not in team cop or team army) ==> do things to the playerid. However if it is , it just dont work as i want ! :v
try this:

Code:
if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY)
don't use || since that just saying or when you can do && for and

so TEAM_COP || TEAM_ARMY means is TEAM COP or TEAM ARMY

but if you use TEAM_COP && TEAM_ARMY means TEAM COP and TEAM ARMY

Under stand how that works?
Reply


Messages In This Thread
OnPlayerDeath - by Djumza - 06.06.2012, 15:26
Re: OnPlayerDeath - by MadeMan - 06.06.2012, 15:38
Re: OnPlayerDeath - by Djumza - 06.06.2012, 16:21
Re: OnPlayerDeath - by MadeMan - 06.06.2012, 16:51
Re: OnPlayerDeath - by Djumza - 07.06.2012, 04:51
Re: OnPlayerDeath - by zDevon - 07.06.2012, 04:56
Re: OnPlayerDeath - by Shaneisace - 07.06.2012, 07:13
Re: OnPlayerDeath - by Djumza - 07.06.2012, 18:16
Re: OnPlayerDeath - by Djumza - 08.06.2012, 11:53
Re: OnPlayerDeath - by Djumza - 10.06.2012, 10:19
Re: OnPlayerDeath - by Shaneisace - 11.06.2012, 05:16
Re: OnPlayerDeath - by Djumza - 11.06.2012, 20:28

Forum Jump:


Users browsing this thread: 1 Guest(s)