Üdv segitenétek ebbe valahogy összehoztam 1 team chatet és errorozik
Kód Rész:
[pawn]public OnPlayerText(playerid, text[])
{
if(text[0] == \'!\')
{
new str[200];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(str, sizeof(str),\"[TeamChat] %s: %s\", pName, text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[playerid]==gTeam
) SendClientMessage(i, 0x33FF33AA, str);
}
}
return 0;
}
return 1;
}[/pawn]
Errorok:
C:\\Documents and Settings\\X\\Asztal\\RVC.pwn(145) : error 017: undefined symbol \"MAX_PLAYERS\"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.