Jump to content
  • 0

pomoc Text když se připojí hráč


Konvicka

Dotaz

Ahojte mám problém mám v módu MultiLanguage a při připojení jiného hráče když jsem na serveru to dělá problémy:

CONNECT:

for(new i=0;iif(IsPlayerConnected(playerid)){
if(Jazyk[i] == CZ){
format(New, 100, "[*-CONNECT-*]_BLABLA %s.", New);
SendClientMessageToAll(SEDA, New);}
else if(Jazyk[i] == EN){
format(New, 100, "[*-CONNECT-*]_The player %s BLA BLA", New);
SendClientMessageToAll(SEDA, New);}}}

 

DisCconent:

for(new i=0;iif(IsPlayerConnected(playerid)){
if(Jazyk[i] == CZ){
switch (reason) {
case 0: format(Odesel, 100, "[*-DISCONNECT-*]_Hráč %s odešel ze serveru (Timeout)", Odesel);
case 1: format(Odesel, 100, "[*-DISCONNECT-*]_Hráč %s odešel ze serveru", Odesel);
case 2: format(Odesel, 100, "[*-DISCONNECT-*]_Hráč %s odešel ze serveru (Kick/Ban)", Odesel);}
SendClientMessageToAll(SEDA, Odesel);}
if(Jazyk[i] == EN){
switch (reason) {
case 0: format(Odesel, 100, "[*-DISCONNECT-*]_The player %s retired from the server (Timeout)", Odesel);
case 1: format(Odesel, 100, "[*-DISCONNECT-*]_The player %s retired from the server", Odesel);
case 2: format(Odesel, 100, "[*-DISCONNECT-*]_The player %s retired from the server (Kick/Ban)", Odesel);}
SendClientMessageToAll(SEDA, Odesel);}}}

 

Pomožte plsky...

 

ŽÁDNÝ ERRORY TO NEHÁZÍ JEN SE TY TEXTY NEZOBRAZUJÍ...

Link to comment
Share on other sites

10 odpovědí na tuto otázku

Recommended Posts

  • 0

format(->New<-, 100, "[*-CONNECT-*]_BLABLA %s.", ->New<-);
SendClientMessageToAll(SEDA,  ->New<-);}

oznacene ->blabla<- si vsimaj

taky isty string a taka ista premena na meno

Link to comment
Share on other sites

  • 0

Zdravím.

Zkuš to takle:

 

 

for(new i=0;i

if(IsPlayerConnected(playerid)){

if(Jazyk == CZ){

switch (reason) {

case 0: format(Odesel, 100, "[*-DISCONNECT-*]_Hráč %s odešel ze serveru (Timeout)", Odesel);

case 1: format(Odesel, 100, "[*-DISCONNECT-*]_Hráč %s odešel ze serveru", Odesel);

case 2: format(Odesel, 100, "[*-DISCONNECT-*]_Hráč %s odešel ze serveru (Kick/Ban)", Odesel);}

SendClientMessageToAll(SEDA, Odesel);}

if(Jazyk == EN){

switch (reason) {

case 0: format(Odesel, 100, "[*-DISCONNECT-*]_The player %s retired from the server (Timeout)", Odesel);

case 1: format(Odesel, 100, "[*-DISCONNECT-*]_The player %s retired from the server", Odesel);

case 2: format(Odesel, 100, "[*-DISCONNECT-*]_The player %s retired from the server (Kick/Ban)", Odesel);}

SendClientMessageToAll(SEDA, Odesel);}}

if(Jazyk!= EN && Jazyk!= CZ)

{

SendClientMessageToAll(SEDA,"Mam tam neco blbe");

}

else

{

SendClientMessageToAll(SEDA,"Tak jazyky sou v cajku");

}

}

 

 

aby ses ujistil, že máš dobře vyřešený jazyky. Takhle vždycky opravuju chyby já. Jestli ti to nepomůže tak sory, akorát sem se snažil pomoct.

Link to comment
Share on other sites

  • 0

to bude asi tým, že nikomu neurčíš Jazyk[playerid] ani na CZ ani na EN, a aj tak tam máš nejaky bordel s premennymi, vobec neviem čo to máš za bordel stym "Odisiel"

Link to comment
Share on other sites

  • 0

 

new string[100],k***t[MAX_PLAYER_NAME];

GetPlayerName(playerid,k***t);

for(new i=0;i

if(IsPlayerConnected(playerid)){

if(Jazyk == CZ){

switch (reason) {

case 0: format(string, 100, "[*-DISCONNECT-*]_Hráč %s odešel ze serveru (Timeout)",k***t);

case 1: format(string, 100, "[*-DISCONNECT-*]_Hráč %s odešel ze serveru", k***t);

case 2: format(string, 100, "[*-DISCONNECT-*]_Hráč %s odešel ze serveru (Kick/Ban)", k***t);}

SendClientMessageToAll(SEDA, string);}

if(Jazyk == EN){

switch (reason) {

case 0: format(string, 100, "[*-DISCONNECT-*]_The player %s retired from the server (Timeout)",k***t);

case 1: format(string, 100, "[*-DISCONNECT-*]_The player %s retired from the server", k***t);

case 2: format(string, 100, "[*-DISCONNECT-*]_The player %s retired from the server (Kick/Ban)", k***t);}

SendClientMessageToAll(SEDA, string);}}}

 

nauč sa premeny...

Link to comment
Share on other sites

  • 0

Jj tohle už jsem si udělal změnil jsem Odesel na PlayerName(playerid)...

 

Teď už jen ten CONNECT...Aby se ta zpráva poslal hráčům co jsou připojeni ..Ale aby se neodeslala tomu co se připojil...A aby to každýmu poslalo v určitém jazyce...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...