Hallo Leute.
Hallo Ich habe da ein Problem könnte da Jemand Helfen bitte mit mein Sprach System ich habe es in dem enum gepackt da kammen die 11 Errors
Ich wollte es in Dialog und Mysql datembank könnt mir da Jemand Helfen
new pLanguage[MAX_PLAYERS char];
#define ENG 0
#define ROM 1
#define GER 2
#define JPN 3
public OnPlayerConnect(playerid)
{
pLanguage{playerid} = ENG;
SendClientMessage(playerid, -1, "The predominant language of this server is: English");
SendClientMessage(playerid, -1, "To change language use: (/GER - German, /ROM - Romanian, /ENG - Englisb, /JPN - Japanese");
return 1;
}
stock GetPlayerLanguage(playerid)
{
return pLanguage{playerid};
}
.
stock SetPlayerLanguage(playerid, language)
{
pLanguage{playerid} = language;
}
if(!strcmp(cmdtext, "/eng"))
{
SendClientMessage(playerid, -1, "You selected the English(ENG) language, now messages will be written in English");
pLanguage{playerid} = ENG;
return 1;
}
if(!strcmp(cmdtext, "/ger"))
{
SendClientMessage(playerid, -1, "Sie wählte die deutsche (GER) Sprache, nun Nachrichten in deutscher Sprache verfasst werden.");
pLanguage{playerid} = GER;
return 1;
}
if(!strcmp(cmdtext, "/rom"))
{
SendClientMessage(playerid, -1, "Ai selectat limba Romana(ROM), mesajele vor fi scri scrise in Romana.");
pLanguage{playerid} = ROM;
return 1;
}
if(!strcmp(cmdtext, "/jpn"))
{
//
SendClientMessage(playerid, -1, "Japanese text here, Japanese text here, Japanese text here, Japanese text here, ");
pLanguage{playerid} = JPN;
return 1;
}
if(!strcmp(cmdtext, "/help"))
{
switch(GetPlayerLanguage(playerid))
{
case ENG:
{
SendClientMessage(playerid, -1, "Welcome to the Help Center");
SendClientMessage(playerid, -1, "Further help text goes under here.");
}
case ROM:
{
SendClientMessage(playerid, -1, "Bun venit in centrul de informatii");
SendClientMessage(playerid, -1, "Mai mult text informativ mai jos...");
}
case GER:
{
SendClientMessage(playerid, -1, "Willkommen auf der Hilfe-Center.");
SendClientMessage(playerid, -1, "Weitere Hilfe-Text.");
}
case JPN:
{
SendClientMessage(playerid, -1, "Anybody knows Japanese?");
SendClientMessage(playerid, -1, "Hope yes...");
}
}
return 1;
}
stock SendLanguageMessage(playerid, color, leng[], lrom[], lger[], ljpn[])
{
switch(GetPlayerLanguage(playerid))
{
case ENG:SendClientMessage(playerid, color, leng);
case ROM:SendClientMessage(playerid, color, lrom);
case GER:SendClientMessage(playerid, color, lger);
case JPN:SendClientMessage(playerid, color, ljpn);
}
return 1;
}
if(!strcmp(cmdtext, "/help"))
{
/*
color, English Romanian German Japanese */
SendLanguageMesage(playerid, -1, "Language Help Center", "Centrul de ajutor", "Sprache Hilfe", "Japanese stuff");
return 1;
}
könnte mir da Jemand Helfen Bitte