26.11.2012, 23:24
tipo no meu server tem o /rg que й em dialog, eu queria passar ele pra texto como faзo isso ?
// new age = PlayerInfo[targetid][pAge]; new ptime = PlayerInfo[targetid][pConnectTime]; //new lotto = PlayerInfo[targetid][pLottoNr]; new deaths = PlayerInfo[targetid][pDeaths]; new fishes = PlayerInfo[targetid][pFishes]; new bigfish = PlayerInfo[targetid][pBiggestFish]; new crimes = PlayerInfo[targetid][pCrimes]; new Drogas = PlayerInfo[targetid][pDrogas]; // maconha new Drogas2 = PlayerInfo[targetid][pDrogas2]; // cocaina new Drogas3 = PlayerInfo[targetid][pDrogas3]; // crack new SafeDrogas = PlayerInfo[targetid][pSafeDrogas]; // maconha new SafeDrogas2 = PlayerInfo[targetid][pSafeDrogas2]; // cocaina new SafeDrogas3 = PlayerInfo[targetid][pSafeDrogas3]; // crack new materiaisBGH = PlayerInfo[targetid][pMats]; new smats = PlayerInfo[targetid][psMats]; //new wanted = WantedLevel[targetid]; new level = PlayerInfo[targetid][pLevel]; new exp = PlayerInfo[targetid][pExp]; new kills = PlayerInfo[targetid][pKills]; new pnumber = PlayerInfo[targetid][pPnumber]; new Conta = PlayerInfo[targetid][pConta]; new nxtlevel = PlayerInfo[targetid][pLevel]+1; new expquantidade = nxtlevel*levelexp; new costlevel = nxtlevel*levelcost;//10k for testing purposes new Housekey = PlayerInfo[targetid][pPHousekey]; new bizkey = PlayerInfo[targetid][pPbiskey]; new intir = PlayerInfo[targetid][pInt]; new local = PlayerInfo[targetid][pLocal]; new ChaveCarro = PlayerInfo[targetid][pCarKey]; new ChaveCarro2 = PlayerInfo[targetid][pCarKey2]; new Float:shealth = PlayerInfo[targetid][pSHealth]; new Float:health; new creditos = PlayerInfo[targetid][pCreditos]; new name[MAX_PLAYER_NAME]; GetPlayerName(targetid, name, sizeof(name)); GetPlayerHealth(targetid,health); new Float:px,Float:py,Float:pz; GetPlayerPos(targetid, px, py, pz); 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", ""); } }