CMD:one(playerid, params[])
{
if(pInfo[playerid][Language] == LANGUAGE_DE) SendClientMessage(playerid, -1, "Deutscher Text");
if(pInfo[playerid][Language] == LANGUAGE_EN) SendClientMessage(playerid, -1, "English Text");
return 1;
}
//=====================================================================================================
stock SendLanguageMessage(playerid, color, LanguageDE[], LanguageEN[])
{
if(pInfo[playerid][Language] == LANGUAGE_DE) SendClientMessage(playerid, color, LanguageDE);
if(pInfo[playerid][Language] == LANGUAGE_EN) SendClientMessage(playerid, color, LanguageEN);
return 1;
}
CMD:two(playerid, params[]);
{
new stringDE[128], stringEN[128];
format(stringDE, sizeof(stringDE), "Deutscher Text");
format(stringEN, sizeof(stringEN), "English text");
SendLanguageMessage(playerid, -1, stringDE, stringEN);
return 1;
}
"Two" finde ich z.B. wesentlich komfortabler zum Arbeiten. "One" ist aber um einiges kürzer.