SA-MP Forums Archive
This dont work? - 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: This dont work? (/showthread.php?tid=477693)



This dont work? - Blackazur - 25.11.2013

Hello, why this dont work i must be in these 2 teams but how can i make it that it is regardless in which team i am, if im for example just in one?

Код:
	if(team[playerid] == TEAM_ZOMBIE)
	{
		if(team[playerid] == TEAM_ADUTY)
	{
Is it possible to do if(team TEAM_ZOMBIE OR TEAM_ADUTY?


Re: This dont work? - LeeXian99 - 25.11.2013

pawn Код:
if(team[playerid] == TEAM_ZOMBIE || team[playerid] == TEAM_ADUTY)
{
    //your stuff here
}
Hope this helps.


AW: This dont work? - Blackazur - 25.11.2013

works, thanks


Re: This dont work? - Areax - 25.11.2013

Check this https://sampwiki.blast.hk/wiki/Control_Structures