Message to all with language include
#2

Don't return in the loop.
pawn Код:
stock ClientLanguageTextToAll(color, const message0[], const message1[])
{
    foreach (Player, i)
    {
        if(PlayerLanguage[i] == 0)
        {
            SendClientMessage(i, color, message0);
        }
        if(PlayerLanguage[i] == 1)
        {
            SendClientMessage(i, color, message1);
        }
    }
    return 1;
}

stock GameLanguageTextToAll(const message0[], const message1[], time, style)
{
    foreach (Player, i)
    {
        if(PlayerLanguage[i] == 0)
        {
            GameTextForPlayer(i, message0, time, style);
        }
        if(PlayerLanguage[i] == 1)
        {
            GameTextForPlayer(i, message1, time, style);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Message to all with language include - by lamarr007 - 03.02.2012, 10:42
Re: Message to all with language include - by Psymetrix - 03.02.2012, 10:56
Re: Message to all with language include - by lamarr007 - 03.02.2012, 11:20

Forum Jump:


Users browsing this thread: 1 Guest(s)