Dialog bugando. -
PHP код:
CMD:info(playerid) //
{
if(Logado{playerid} == false) return SCM(playerid, COLOR_RED, ""TAG_ERRO" Vocк nгo estб logado!");
showPlayerInfo(playerid, playerid);
return 1;
}
static stock showPlayerInfo(playerid, target)
{
static String[1024],
Dialog[1024];
format(String, sizeof(String), "Level: %d\n", GetPlayerScore(target));
strcat(Dialog, String);
format(String, sizeof(String), "VIP: %s\n", (Player[target][Vip] ? ("Sim") : ("Nгo")));
strcat(Dialog, String);
format(String, sizeof(String), "Dinheiro: %d\n", GetPlayerMoney(target));
strcat(Dialog, String);
format(String, sizeof(String), "Matou: %d\n", Player[playerid][Matou]);
strcat(Dialog, String);
format(String, sizeof(String), "Morreu: %d\n", Player[playerid][Morreu]);
strcat(Dialog, String);
format(String, sizeof(String), "Cash: c%d\n", Player[target][Cash]);
strcat(Dialog, String);
format(String, sizeof(String), "Logou: %d\n", Player[playerid][Logou]);
strcat(Dialog, String);
format(String, sizeof(String), "Pertece а {%06x}%s\n", GetPlayerColor(target) >>> 8, GetNameFaccoes[Player[target][Faccoes]]);
strcat(Dialog, String);
return ShowPlayerDialog(playerid, DIALOG_MESSAGE, DIALOG_STYLE_MSGBOX, "Informaзхes da Conta", Dialog, "Fechar", "");
}
Re: Dialog bugando. -