language - message to all - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: language - message to all (
/showthread.php?tid=274373)
language - message to all -
ylleron - 05.08.2011
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
Re: language - message to all -
Tigerkiller - 05.08.2011
pawn Код:
stock SendMessageToAll(color, en[], sk[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
switch (GetLang(i))
{
case SK: SendClientMessage(i, color, sk);
case EN: SendClientMessage(i, color, en);
}
}
return true;
}
try it i think it works
Re: language - message to all -
ylleron - 05.08.2011
yeah i'll try thanks
Re: language - message to all -
Tigerkiller - 05.08.2011
ok respone after testing
Re: language - message to all -
ylleron - 05.08.2011
yyep, it works, ty
Re: language - message to all -
Tigerkiller - 05.08.2011
no problem
your welcome