Sziasztok a klán chatban kérném a segítségeteket.
Error: - argument type mismatch (argument 1)
- array must be indexed (variable \"GetPlayerClan\")
public OnPlayerText(playerid, text[])
{
new pChat[128];
//--------------------------------------------------------------------------
//Clan chat
//--------------------------------------------------------------------------
if(text[0] == \'+\' && IsPlayerAnyClanMember(playerid))
{
//----------------------------------------------------------------------
format(pChat, 128, \"[Klán-Chat]: {FF4400} %s: {15FF00}%s\", PlayerName2(playerid),text[1]);
SendMessageToClan(GetPlayerClan(playerid),pChat);
//----------------------------------------------------------------------
}
return 0;
}
stock SendMessageToClan(clanid,message[])
{
for(new x;x<MAX_PLAYERS;x++) if(GetPlayerClan(x)==clanid) SendClientMessage(x,0x325333FF,message);
return 1;
}