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



Variable abfragen - Blackazur - 14.05.2014

Hello, how can i make that you can use it if you are in one of this teams? Is that right?

Код:
	if(team[playerid] == TEAM_1 || TEAM_2)



Re: Variable abfragen - Konstantinos - 14.05.2014

You can't compare like that.

https://sampwiki.blast.hk/wiki/Control_Structures#Operators

pawn Код:
if(team[playerid] == TEAM_1 || team[playerid] == TEAM_2)