converter dialog pra sendclientmessage -
gabrielloko157 - 16.03.2013
alguem pode converter para sendclientmessage ?
pawn Код:
new RulesBox[2000];
if(targetid == playerid)
{}
else
{}
format(RulesBox, sizeof(RulesBox),"%s\n%s\n",RulesBox,name);
format(RulesBox, sizeof(RulesBox), "%s\nNivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d]\n",RulesBox, level,atext,shealth+50, cash, Conta, pnumber,creditos);
format(RulesBox, sizeof(RulesBox), "%s\nConta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Profissгo Secundaria:[%s] Socio:[%s]\n",RulesBox, drank,married,ptime,jtext,thsocio);
format(RulesBox, sizeof(RulesBox), "%s\nPeixes:[%d] Maior Peixe:[%d] Crimes Cometidos:[%d] Matou:[%d] Morreu:[%d]\n",RulesBox, fishes,bigfish,crimes,kills,deaths );
format(RulesBox, sizeof(RulesBox), "%s\nPrуximo Nivel:[R$%d] Respeito:[%d/%d] Doenзas:[%s]\n",RulesBox,costlevel,exp,expquantidade,dtext);
format(RulesBox, sizeof(RulesBox), "%s\nMateriais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Nнvel Helper:[%d]\n",RulesBox,materiaisBGH,smats,NomeORG(targetid),thcargo, PlayerInfo[playerid][pHelper]);
format(RulesBox, sizeof(RulesBox), "%s\nMaconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]\n",RulesBox,Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
format(RulesBox, sizeof(RulesBox), "%s\nChave De Casa [%d] Chave Da Empresa [%d] Chave Do Carro(Aluguel) [%d] Interior:[%d] Local:[%d]\n",RulesBox, Housekey,bizkey,HireCar[targetid],intir,local);
format(RulesBox, sizeof(RulesBox), "%s\nVeiculo 1[%d] Veiculo 2[%d]\n",RulesBox, ChaveCarro, ChaveCarro2);
ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX, "Documentos", RulesBox, "Fechar", "");
}
Re: converter dialog pra sendclientmessage -
Gii - 16.03.2013
pawn Код:
format(RulesBox, sizeof(RulesBox), "Nivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d]",level,atext,shealth+50, cash, Conta, pnumber,creditos);
SendClientMessage(playerid, -1, RulesBox);
//e assim vai
Re: converter dialog pra sendclientmessage -
Josma_cmd - 16.03.2013
pawn Код:
new RulesBox[128];
if(targetid != playerid)
{
format(RulesBox, sizeof(RulesBox),"%s ",name);
SendClientMessage(playerid, 0x1E90FF99, RulesBox);
format(RulesBox, sizeof(RulesBox), "Nivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d] ", level,atext,shealth+50, cash, Conta, pnumber,creditos);
SendClientMessage(playerid, 0x1E90FF99, RulesBox);
format(RulesBox, sizeof(RulesBox), "Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Profissгo Secundaria:[%s] Socio:[%s] ", drank,married,ptime,jtext,thsocio);
SendClientMessage(playerid, 0x1E90FF99, RulesBox);
format(RulesBox, sizeof(RulesBox), "Peixes:[%d] Maior Peixe:[%d] Crimes Cometidos:[%d] Matou:[%d] Morreu:[%d] ", fishes,bigfish,crimes,kills,deaths );
SendClientMessage(playerid, 0x1E90FF99, RulesBox);
format(RulesBox, sizeof(RulesBox), "Prуximo Nivel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] ",costlevel,exp,expquantidade,dtext);
SendClientMessage(playerid, 0x1E90FF99, RulesBox);
format(RulesBox, sizeof(RulesBox), "Materiais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Nнvel Helper:[%d] ",materiaisBGH,smats,NomeORG(targetid),thcargo, PlayerInfo[playerid][pHelper]);
SendClientMessage(playerid, 0x1E90FF99, RulesBox);
format(RulesBox, sizeof(RulesBox), "Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d] ",Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
SendClientMessage(playerid, 0x1E90FF99, RulesBox);
format(RulesBox, sizeof(RulesBox), "Chave De Casa [%d] Chave Da Empresa [%d] Chave Do Carro(Aluguel) [%d] Interior:[%d] Local:[%d] ", Housekey,bizkey,HireCar[targetid],intir,local);
SendClientMessage(playerid, 0x1E90FF99, RulesBox);
format(RulesBox, sizeof(RulesBox), "Veiculo 1[%d] Veiculo 2[%d] ", ChaveCarro, ChaveCarro2);
SendClientMessage(playerid, 0x1E90FF99, RulesBox);
}
Poderia usar strcat.
A lуgica da estrutura de decisгo tб completamente controversa.
Re: converter dialog pra sendclientmessage -
gabrielloko157 - 16.03.2013
tem que ir colocando sendclientmessage neles ?
Re: converter dialog pra sendclientmessage -
gabrielloko157 - 16.03.2013
ah sim, com a explicaзгo do Josma entendi mais um pouco =D