05.08.2011, 17:20
Hey all, i make my language switcher and i need to ask you.
SendMessage (to one player working)
but i don't know how to make this one
this doesn' work correct. Thanks for feedback
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; }
Код:
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; }