17.07.2011, 09:47
Quote:
pawn Код:
But how could i make that so i can do SendLangMessageToAll("Hello there %s","Hola %s",GetPlayerName(playerid,pName,sizeof(pName)); |
PHP код:
format(string, sizeof(string), "Hello there %s", "FireCat");
format(string1, sizeof(string), "Hola %s", "FireCat");
SendLangMessageToAll(string, string1);
PHP код:
stock SendLangMessageToAll(const eng[], const esp[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
SendClientMessage(i, green2, (!(GetLang(i) == 2) ? (eng) : (esp)));
}
return 1;
}