02.05.2018, 23:26
Quote:
Como faзo pra transformar em DIALOG_STYLE_MSGBOX ?
Code: if(strcmp("/rg", cmd, true) == 0) { new string222[256]; format(string222, sizeof(string222), "......:::::: - %s: [ID: %d] - ::::::.....", GetPlayerNameEx(playerid), playerid); SendClientMessage(playerid, -1, string222); format(string, sizeof(string), "{CCFF00}» EXP: %d/%d {00BFFF}» Grana na Mгo: $%d", PlayerInfo[playerid][_EXP], MAX_PLAYER_EXP, GetPlayerGrana(playerid)); SendClientMessage(playerid, -1, string); format(string, sizeof(string), "{00BFFF}» Level: %d/%d {00FF00}» Saldo Bancбrio: $%d", PlayerInfo[playerid][_Level], MAX_PLAYER_LEVEL, PlayerInfo[playerid][_SaldoBancario]); SendClientMessage(playerid, -1, string); format(string, sizeof(string), "{CCFF00}» Estudo: %d/%d {00BFFF}» Casou Com: %s", PlayerInfo[playerid][_Faculdade], MAX_PLAYER_ESTUDO, PlayerInfo[playerid][_CasouCom]); SendClientMessage(playerid, -1, string); format(string, sizeof(string), "{00BFFF}» Profissгo ID: %d {00FF00}» Skin ID: %d", PlayerInfo[playerid][_Profissao], PlayerInfo[playerid][_Skin]); SendClientMessage(playerid, -1, string); format(string, sizeof(string), "{CCFF00}» Matou: %d {00BFFF}» Morreu: %d", matou[playerid], morreu[playerid]); SendClientMessage(playerid, -1, string); SendClientMessage(playerid, -1, string222); return 1; } |
Code:
if(strcmp("/rg", cmd, true) == 0) { new StatusInfo[1000], Info[400] ; format(Info, sizeof(Info), "{FFFFFF}......:::::: - %s: [ID: %d] - ::::::.....\n\n", , GetPlayerNameEx(playerid), playerid), strcat(StatusInfo, Info); format(Info, sizeof(Info), "{CCFF00}» EXP: %i/%i {00BFFF}» Grana na Mгo: R$ %i\n", PlayerInfo[playerid][_EXP], MAX_PLAYER_EXP, GetPlayerGrana(playerid)), strcat(StatusInfo, Info); format(Info, sizeof(Info), "{00BFFF}» Level: %i/%i {00FF00}» Saldo Bancбrio: R$ %i\n", PlayerInfo[playerid][_Level], MAX_PLAYER_LEVEL, PlayerInfo[playerid][_SaldoBancario]), strcat(StatusInfo, Info); format(Info, sizeof(Info), "{CCFF00}» Estudo: %i/%i {00BFFF}» Casou Com: %s\n", PlayerInfo[playerid][_Faculdade], MAX_PLAYER_ESTUDO, PlayerInfo[playerid][_CasouCom]), strcat(StatusInfo, Info); format(Info, sizeof(Info), "{00BFFF}» Profissгo ID: %i {00FF00}» Skin ID: %i\n", PlayerInfo[playerid][_Profissao], PlayerInfo[playerid][_Skin]), strcat(StatusInfo, Info); format(Info, sizeof(Info), "{CCFF00}» Matou: %i {00BFFF}» Morreu: %i", matou[playerid], morreu[playerid]), strcat(StatusInfo, Info); ShowPlayerDialog(playerid, 444, DIALOG_STYLE_MSGBOX, "RG", StatusInfo, "Fechar", #); return true; }