SA-MP Forums Archive
gTeam tiny question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: gTeam tiny question (/showthread.php?tid=260300)



gTeam tiny question - nuriel8833 - 08.06.2011

Hello
I have a tiny question about gTeam
How can I define gTeam inside brackets?
For example:
pawn Код:
new gTeam[MAX_PLAYERS];
new TeamDoesSomething[gTeam];
^^
This give me this error:
pawn Код:
error 008: must be a constant expression; assumed zero
And if I add brackets to the gTeam (like new TeamDoesSomething[gTeam[]]; ) I get the invaild expression error
So how can I define gTeam inside brakcets?
Please help