Problem with Gang Chat
#9

public OnPlayerText(playerid, text[])
{
if(text[0] == '!') {
if(playerGang[playerid] > 0) {
new gangChat[256];
new senderName[MAX_PLAYER_NAME];
new string[256];

// for(new i = 1; i < strlen(text)+1; i++)
// gangChat[i]=text[i];

strmid(gangChat,text,1,strlen(text));

GetPlayerName(playerid, senderName, sizeof(senderName));
format(string, sizeof(string),"%s: %s", senderName, gangChat);

for(new i = 0; i < gangInfo[playerGang[playerid]][1]; i++) {
SendClientMessage(gangMembers[playerGang[playerid]][i], COLOR_LIGHTBLUE, string);
}
}

return 0;
}
return 1;
}
Reply


Messages In This Thread
Problem with Gang Chat - by dawidek11 - 21.02.2009, 08:01
Re: Problem with Gang Chat - by _diana_ - 30.08.2009, 03:09
Re: Problem with Gang Chat - by HuRRiCaNe - 30.08.2009, 03:18
Re: Problem with Gang Chat - by _diana_ - 30.08.2009, 05:36
Re: Problem with Gang Chat - by Zeex - 30.08.2009, 06:00
Re: Problem with Gang Chat - by Imran.Abbas - 30.08.2009, 06:41
Re: Problem with Gang Chat - by _diana_ - 31.08.2009, 09:19
Re: Problem with Gang Chat - by dice7 - 31.08.2009, 09:44
Re: Problem with Gang Chat - by _diana_ - 31.08.2009, 09:57

Forum Jump:


Users browsing this thread: 1 Guest(s)