How to make a team chat?
#8

Quote:
Originally Posted by AstonDA-G
Посмотреть сообщение
Try adding
pawn Код:
gTeam[playerid] = GetPlayerTeam(playerid);
at the top of your command just underneath your new text[128]; line.
I think you have to redefine gTeam in every different callback/command/whatever
I'm posting again to clarify something for you.


pawn Код:
new gTeam[MAX_PLAYERS];
At the top of your script would make it a global variable, meaning you won't need to redefine it when using it.

pawn Код:
new gTeam[MAX_PLAYERS];
Inside of a function would make it a "local" variable, meaning it won't exist in other functions unless re-defined in them.
Reply


Messages In This Thread
How to make a team chat? - by rangerxxll - 11.03.2012, 21:36
Re: How to make a team chat? - by AstonDA-G - 11.03.2012, 21:39
Re: How to make a team chat? - by rangerxxll - 11.03.2012, 21:49
Re: How to make a team chat? - by kvsolga - 11.03.2012, 21:55
Re: How to make a team chat? - by AstonDA-G - 11.03.2012, 21:58
Re: How to make a team chat? - by [ABK]Antonio - 11.03.2012, 21:59
Re: How to make a team chat? - by rangerxxll - 11.03.2012, 22:00
Re: How to make a team chat? - by [ABK]Antonio - 11.03.2012, 22:03
Re: How to make a team chat? - by kvsolga - 11.03.2012, 22:07

Forum Jump:


Users browsing this thread: 4 Guest(s)