07.10.2018, 17:05
Tipo tava fazendo um /info que mostra os dados do jogador porйm, a dialog quando voce abre ela a primeira vez abre de boa na segunda ela buga й fica na tela toda do game.
Oque fiz de errado? pra dialog bugar.
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", "");
}