04.05.2015, 04:22
(
Последний раз редактировалось Username1234; 06.05.2015 в 02:43.
)
Resolvido
#define DialogCasasVenda 1234
CMD:casas(playerid, params[]) { #pragma unused params new PlayerList[4500], frase[128]; for(new i; i < MAX_HOUSES; i++) { if(!AHouseData[i][Owned]) { format(frase, sizeof(frase), "Casa ID: %d (Level - %d), Preзo:R$:%d\n", i, HouseID, AHouseData[i][HouseMaxLevel], AHouseData[i][HousePrice]); strcat(PlayerList, frase); } } if(strlen(PlayerList) != 0) ShowPlayerDialog(playerid, DialogCasasVenda, DIALOG_STYLE_LIST, "{FFFFFF}Casas", PlayerList, "Ok", "Cancelar"); else SendClientMessage(playerid, -1, "Nгo hб nenhuma casa disponнvel para venda"); return 1; }
if(dialogid == DialogCasasVenda) { if(response) { switch(listitem) { case 0 .. 500: SetPlayerPos(playerid, AHouseData[listitem][HouseX], AHouseData[listitem][HouseY], AHouseData[listitem][HouseZ]); } } return 1; }
format(frase, sizeof(frase), "Casa ID: %d (Level - %d), Preзo:R$:%d\n", i, HouseID, AHouseData[i][HouseMaxLevel], AHouseData[i][HousePrice]);
format(frase, sizeof(frase), "Casa ID: %d (Level - %d), Preзo:R$:%d\n", i, AHouseData[i][HouseMaxLevel], AHouseData[i][HousePrice]);
CMD:casas(playerid, params[]) { new PlayerList[4500], frase[128]; for(new i; i < MAX_HOUSES; i++) { if(!AHouseData[i][Owned]) { format(frase, sizeof(frase), "Casa ID: %d (Level - %d), Preзo:R$:%d\n", i, AHouseData[i][HouseMaxLevel], AHouseData[i][HousePrice]); strcat(PlayerList, frase); } } if(strlen(PlayerList) != 0) return ShowPlayerDialog(playerid, DialogCasasVenda, DIALOG_STYLE_LIST, "{FFFFFF}Casas", PlayerList, "Ok", "Cancelar"); else return SendClientMessage(playerid, -1, "Nгo hб nenhuma casa disponнvel para venda"); return 1; }