pilgetir Posted June 6, 2011 Share Posted June 6, 2011 (edited) Merhaba arkadaşlar ben bir işim için fonksiyon hazırladım.Rastgele sayı üretiyor ama ben bu ürettiğim birinci sayının hemen yanına dikey çizgi insin istiyorum yani bir türlü yapamadım.Dikey çizgi indirmek yerin /_________ çizgilerini koydum.Ama benim istediğim "local s"değişkeninde üretilen sayının yanına dikey çizgi indirmek ve ikinci sayıyıda o çizginin yanıan yazmak. Aşağıdaki fonksiyonda ne gibi bi değişiklik yapmam lazım ? [quote]function rastgele_sayi_bol_bes(sayi,nesne) local str = ""; for i=1,sayi do local s = Math.Random(10000, 99999) local s_t = Math.Random(10000, 99999) str = str.." "..s.."\r\n".." "..s_t.."\r\n /__________".."\r\n\r\n"; end Input.SetText(nesne,str) end[/quote] Edited June 6, 2011 by pilgetir Quote Link to comment Share on other sites More sharing options...
KintaRo Posted June 6, 2011 Share Posted June 6, 2011 doğru anladıysam [quote]function rastgele_sayi_bol_bes(sayi,nesne) local str = ""; for i=1,sayi do local s = Math.Random(10000, 99999) local s_t = Math.Random(10000, 99999) str = str.." "..s.."|".." "..s_t.."\r\n\r\n"; end Input.SetText(nesne,str) end[/quote] kod bu şekilde olacak çıktısıda suna benziyor: [quote] 45561| 11763 42221| 44239 71223| 76557 10499| 47481[/quote] Quote Link to comment Share on other sites More sharing options...
pilgetir Posted June 6, 2011 Author Share Posted June 6, 2011 (edited) Abi öncelikle teşekkür ederim.O ortaya koyduğumuz çizgiyi uzatamaz mıyız şöyle yani 45561| 11763 tabi bunlar birleşik ? | | Edited June 6, 2011 by pilgetir Quote Link to comment Share on other sites More sharing options...
KintaRo Posted June 6, 2011 Share Posted June 6, 2011 şimdi anladım dediğini onun için grid yada listicon kullanman lazım, inputta stabil olmaz. Quote Link to comment Share on other sites More sharing options...
pilgetir Posted June 7, 2011 Author Share Posted June 7, 2011 Grid veya listicon için nasıl bir uygulama yapabiliriz abi örnek verebilir misin acaba ? Quote Link to comment Share on other sites More sharing options...
KintaRo Posted June 7, 2011 Share Posted June 7, 2011 [quote]http://www.mediafire.com/?928q7mfsa243y2u[/quote] pluginde dosyanın içinde Quote Link to comment Share on other sites More sharing options...
pilgetir Posted June 7, 2011 Author Share Posted June 7, 2011 Abi plugi ve apz dosyasını indiridm fakat benim yapmak istediğim öyle değil eğer müsaitsen team bilgilerini veriyimde bakabilir misin ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.