Help!!![Text Problem]
#1

Problem solved!!!
Reply
#2

Something's not really right in your code.

You return before you SendClientMessageToAll. .. So there's no way that would work. Try:
pawn Код:
public OnPlayerText(playerid, text[])
{
    new pName[24];
    GetPlayerName(playerid,pName,sizeof(pName));
    new string[256];
    if(gTeam[playerid]==TEAM_ROBBERS) format(string,sizeof(string),"{FFFFFF}%s(%d):%s",pName,playerid,text);
    else if(gTeam[playerid]==TEAM_COPS) format(string,sizeof(string),"{0000FF}%s(%d):{FFFFFF}%s",pName,playerid,text);
    else if(gTeam[playerid]==TEAM_MEDICS) format(string,sizeof(string),"{33AA33}%s(%d):{FFFFFF}%s",pName,playerid,text);
    else if(gTeam[playerid]==TEAM_FIREFIGHTERS) format(string,sizeof(string),"{FF4500}%s(%d):{FFFFFF}%s",pName,playerid,text);
    SendClientMessageToAll(COLOR_WHITE,string);
    return 0;
}
Reply
#3

Thank you,it worked!!!

TOPIC CLOSED!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)