language - message to all
#1

Hey all, i make my language switcher and i need to ask you.

SendMessage (to one player working)
Код:
stock SendMessage(playerid, color, en[], sk[])
{
    switch (GetLang(playerid))
    {
		case SK: SendClientMessage(playerid, color, sk); //
		case EN: SendClientMessage(playerid, color, en); //
    }
return true;
}
but i don't know how to make this one
Код:
stock SendMessageToAll(color, en[], sk[])
{
	loop(i, MAX_PLAYERS)
	{
            switch (GetLang(i))
            {
	          case SK: SendClientMessageToAll(i, color, sk);
	          case EN: SendClientMessageToAll(i, color, en);
            }
	}
	return true;
}
this doesn' work correct. Thanks for feedback
Reply


Messages In This Thread
language - message to all - by ylleron - 05.08.2011, 17:20
Re: language - message to all - by Tigerkiller - 05.08.2011, 17:40
Re: language - message to all - by ylleron - 05.08.2011, 17:45
Re: language - message to all - by Tigerkiller - 05.08.2011, 17:48
Re: language - message to all - by ylleron - 05.08.2011, 18:36
Re: language - message to all - by Tigerkiller - 05.08.2011, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)