Chat problem
#1

When someone types something it appears two times in the chat. What can i do to fix this?
Here is my code in OnPlayertext

pawn Код:
public OnPlayerText(playerid,text[])
{

     new textstring[128];
    format(textstring, sizeof(textstring), "(%i) %s" ,playerid ,text);
    SendPlayerMessageToAll(playerid, textstring);

if(QuestionStarted == 1 && strfind(text[0], Question, false) == 0)
            {
                new string[128];
                    format(string, sizeof(string), " %s won $%d by typing '%s'!", PlayerName[playerid], RandomQuestionMoney, Question);
                    SendClientMessageToAll(COLOR_GREEN, string);
                    GivePlayerMoney(playerid, RandomQuestionMoney);
                    QuestionStarted = 0;
                    return 0;
            }

return 1;
}
Reply


Messages In This Thread
Chat problem - by martoivanov - 19.06.2013, 16:03
Re: Chat problem - by MP2 - 19.06.2013, 16:14
Re: Chat problem - by martoivanov - 19.06.2013, 16:27

Forum Jump:


Users browsing this thread: 2 Guest(s)