if(strcmp(cmd, "/s", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(WarDuty == 1)
{
new string[128];
new string2[128];
new string3[128];
new string4[128];
new string5[128];
new string6[128];
new string7[128];
new string8[128];
format(string, sizeof(string), " Ballas :{FFFFFF} %d Kills\n", Factiunea1);
format(string2, sizeof(string2), "%s Vagos : {FFFFFF}%d Kills\n",string , Factiunea2);
format(string3, sizeof(string3), "%s The Mafia : {FFFFFF}%d Kills\n",string2 , Factiunea3);
format(string4, sizeof(string4), "%s Aztecas : {FFFFFF}%d Kills\n",string3 , Factiunea4);
format(string5, sizeof(string5), "%s Groove : {FFFFFF}%d Kills\n",string4 , Factiunea5);
format(string6, sizeof(string6), "%s The Triads : {FFFFFF}%d Kills\n",string5 , Factiunea6);
format(string7, sizeof(string7), "%s Final Score\n",string6 );
format(string8, sizeof(string8), "%s {FFFFFF}Score: %d {FFFFFF}- %d",string7 , Alianta2, Alianta1);
ShowPlayerDialog(playerid, 72, DIALOG_STYLE_MSGBOX, "LIVE SCORE",string8, "OK" , "");
}
if(WarDuty == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " Poti vedea scorul doar daca warul este pornit!");
}
}
return 1;
}
Uite aici, este "\n" nu "/n" . La ultima nu-ti trebuie \n neaparat deci l-am scos.
EDIT: Vad ca ai rezolvato singur , good job .
EDIT2: Hmm, curios incearca asa :
if(strcmp(cmd, "/s", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(WarDuty == 1)
{
new string[128];
new string2[128];
new string3[128];
new string4[128];
new string5[128];
new string6[128];
new string7[128];
new string8[128];
new string9[256];
format(string, sizeof(string), " Ballas :{FFFFFF} %d Kills\n", Factiunea1);
format(string2, sizeof(string2), "Vagos : {FFFFFF}%d Kills\n", Factiunea2);
format(string3, sizeof(string3), "The Mafia : {FFFFFF}%d Kills\n", Factiunea3);
format(string4, sizeof(string4), "Aztecas : {FFFFFF}%d Kills\n", Factiunea4);
format(string5, sizeof(string5), "Groove : {FFFFFF}%d Kills\n", Factiunea5);
format(string6, sizeof(string6), "The Triads : {FFFFFF}%d Kills\n", Factiunea6);
format(string7, sizeof(string7), "Final Score\n" );
format(string8, sizeof(string8), "{FFFFFF}Score: %d {FFFFFF}- %d",Alianta2, Alianta1);
format(string9, sizeof(string9), "%s%s%s%s%s%s%s%s",string,string2,string3,string4,string5,string6,string7,string8);
ShowPlayerDialog(playerid, 72, DIALOG_STYLE_MSGBOX, "LIVE SCORE",string9, "OK" , "");
}
if(WarDuty == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " Poti vedea scorul doar daca warul este pornit!");
}
}
return 1;
} Nu sunt foarte sigur daca va functiona, dar poti incerca.