<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : Veritabanına Kullanıcı Adı Çekme</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Veritabanına Kullanıcı Adı Çekme]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 10:53:25 +0000</pubDate>
  <lastBuildDate>Sun, 16 Jun 2024 17:42:52 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=610</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[Veritabanına Kullanıcı Adı Çekme : tamamd&#305;r hallettim. ]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=895#895</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=159">emre.gungor01</a><br /><strong>Konu:</strong> 610<br /><strong>Gönderim Zamanı:</strong> 16&nbsp;Haziran&nbsp;2024 Saat 17:42<br /><br />tamamdır hallettim.]]>
   </description>
   <pubDate>Sun, 16 Jun 2024 17:42:52 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=895#895</guid>
  </item> 
  <item>
   <title><![CDATA[Veritabanına Kullanıcı Adı Çekme :  Dedi&#287;iniz &#351;ekilde yapt&#305;m ve...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=891#891</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=159">emre.gungor01</a><br /><strong>Konu:</strong> 610<br /><strong>Gönderim Zamanı:</strong> 12&nbsp;Haziran&nbsp;2024 Saat 12:13<br /><br /><img src="uploads/159/WhatsApp_Görsel_2024-06-12_saat_12.10.56_58e3fa17.jpg" height="169" width="353" border="0" /><div>Dediğiniz şekilde yaptım ve bu hatayı aldım. Kullanıcı adını yazdığımız bölüme integer değer girilebiliyor fakat string değer girelemiyor.</div>]]>
   </description>
   <pubDate>Wed, 12 Jun 2024 12:13:31 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=891#891</guid>
  </item> 
  <item>
   <title><![CDATA[Veritabanına Kullanıcı Adı Çekme :  Dedi&#287;iniz &#351;ekilde yapt&#305;&#287;&#305;m zaman...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=890#890</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=159">emre.gungor01</a><br /><strong>Konu:</strong> 610<br /><strong>Gönderim Zamanı:</strong> 12&nbsp;Haziran&nbsp;2024 Saat 12:10<br /><br /><img src="" border="0" /><div>Dediğiniz şekilde yaptığım zaman integer değerini alıyor. Fakat string değerini almıyor ve bu hatayı veriyor.</div>]]>
   </description>
   <pubDate>Wed, 12 Jun 2024 12:10:13 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=890#890</guid>
  </item> 
  <item>
   <title><![CDATA[Veritabanına Kullanıcı Adı Çekme : Merhaba Emre&amp;#039;INSERT INTO...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=889#889</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 610<br /><strong>Gönderim Zamanı:</strong> 12&nbsp;Haziran&nbsp;2024 Saat 12:00<br /><br />Merhaba Emre&nbsp;<div><span style=": rgb251, 251, 253;">&nbsp;'INSERT INTO Kullaniicilar (OyuncuAdi) VALUES (' + QuotedStr(KullaniciAdiEdt.Text) + '); '&nbsp;</span></div><div><span style=": rgb251, 251, 253;">Bunda hata var&nbsp;</span></div><div><span style=": rgb251, 251, 253;">INSERT INTO Kullaniicilar (id,OyuncuAdi) VALUES (2,' + QuotedStr(KullaniciAdiEdt.Text) + ');&nbsp;</span></div><div><span style=": rgb251, 251, 253;">Böyle dener misin&nbsp;</span></div>]]>
   </description>
   <pubDate>Wed, 12 Jun 2024 12:00:11 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=889#889</guid>
  </item> 
  <item>
   <title><![CDATA[Veritabanına Kullanıcı Adı Çekme : AnaKod:Var AnaForm:TclForm; KullaniciId:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=883#883</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=159">emre.gungor01</a><br /><strong>Konu:</strong> 610<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Haziran&nbsp;2024 Saat 18:19<br /><br />AnaKod:<div><br></div><div><div>Var</div><div>&nbsp; AnaForm:TclForm;</div><div>&nbsp;&nbsp;</div><div>&nbsp; KullaniciId: String;</div><div>&nbsp; Id:Integer;</div><div>&nbsp;&nbsp;</div><div>&nbsp; OyunGirisButonu: TClProButton;&nbsp; //Giriş butonu</div><div>&nbsp; GirisLabeli: TCLLabel;&nbsp; &nbsp;//Oyun Adı</div><div>&nbsp; KullaniciAdiEdt:TclEdit; //Kullanıcı Adı Girişi</div><div>&nbsp; KullaniciAdi: String;&nbsp; //Kullanıcı Adı Girişi</div><div>&nbsp;&nbsp;</div><div>&nbsp; //Resimler</div><div>&nbsp; resim1:TCLImage;</div><div>&nbsp; resim2:TCLImage;</div><div>&nbsp; resim3:TCLImage;</div><div>&nbsp; resim4:TCLImage;</div><div>&nbsp; resim5:TCLImage;</div><div>&nbsp; resim6:TCLImage;</div><div>&nbsp; bomba1:TCLImage;</div><div>&nbsp; time1:TCLImage;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //Veritabanı</div><div>&nbsp; OyunVeritabani:TClSqlQuery;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //Skor Tablosu</div><div>&nbsp; SkorTablosu: TClProButton;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //Kurucu Girişi</div><div>&nbsp; adminGirisi: TClProButton;</div><div>&nbsp;&nbsp;</div><div><br></div><div>//Veri Tabanı bağlantısı için.</div><div>Void SetupSqlConnection</div><div>{</div><div>&nbsp; Clomosy.DBSQLServerConnect('SQL Server', '192.168.1.149', 'sa', '1', 'Oyun', 1433);</div><div>}</div><div><br></div><div>//Girilen Kullanıcı Adlarını Veri Tabanına almak için.</div><div>void OyunGirisButonuClick</div><div>{</div><div>&nbsp; OyunVeritabani = TClSqlQuery.Create(nil);</div><div>&nbsp; &nbsp;try</div><div>&nbsp; &nbsp; OyunVeritabani.Connection = Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; // Kullanıcı adını ekleme veya varsa kullanıcı id'sini alma</div><div>&nbsp; &nbsp; OyunVeritabani.SQL.Text =&nbsp;</div><div>&nbsp; &nbsp; &nbsp; 'IF NOT EXISTS (SELECT 1 FROM Kullaniicilar WHERE OyuncuAdi = ' + QuotedStr(KullaniciAdiEdt.Text) + ') ' +</div><div>&nbsp; &nbsp; &nbsp; 'BEGIN ' +</div><div>&nbsp; &nbsp; &nbsp; 'INSERT INTO Kullaniicilar (OyuncuAdi) VALUES (' + QuotedStr(KullaniciAdiEdt.Text) + '); ' +</div><div>&nbsp; &nbsp; &nbsp; 'END; ' +</div><div>&nbsp; &nbsp; &nbsp; 'SELECT Id FROM Kullaniicilar WHERE OyuncuAdi = ' + QuotedStr(KullaniciAdiEdt.Text);</div><div>&nbsp; &nbsp; OyunVeritabani.Open;</div><div>&nbsp; &nbsp; KullaniciId = OyunVeritabani.FieldByName('Id').AsString;</div><div>&nbsp; &nbsp; KullaniciAdi = KullaniciAdiEdt.Text; // Kullanıcı adını al</div><div>&nbsp; &nbsp; Clomosy.GlobalVariableString=KullaniciAdiEdt.Text; // Kullanıcı adını al //burası</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; OyunVeritabani.Free;</div><div>&nbsp; }</div><div>&nbsp; Clomosy.RunUnit('Oyun');&nbsp; //Oyun adlı Unit'e gitmek için.</div><div>}</div><div><br></div><div>//Tıklandığında Skor'a atar.</div><div>void SkorTablosuClick</div><div>{</div><div>&nbsp; Clomosy.RunUnit('Skor');</div><div>}</div><div><br></div><div>//Tıklandığında adminGirisi'ne atar.</div><div>void adminGirisiClick</div><div>{</div><div>&nbsp; Clomosy.RunUnit('Admin');</div><div>}</div><div>&nbsp;{</div><div>&nbsp;</div><div>&nbsp; AnaForm = TclForm.Create(Self);</div><div>&nbsp;&nbsp;</div><div>&nbsp; SetupSqlConnection; //Veritabanı bağlantısı için</div><div>&nbsp;&nbsp;</div><div>&nbsp; //Resimler</div><div>&nbsp; //resim1</div><div>&nbsp; resim1=AnaForm.AddNewImage(AnaForm,'resim1');</div><div>&nbsp; AnaForm.SetImage(resim1,'<a href="https://cdn0.ic&#111;nfinder.com/data/ic&#111;ns/phosphor-thin-vol-3/256/number-circle-&#111;ne-thin-256.png" target="_blank" rel="nofollow">https://cdn0.iconfinder.com/data/icons/phosphor-thin-vol-3/256/number-circle-one-thin-256.png</a>');</div><div>&nbsp; resim1.Height=120;</div><div>&nbsp; resim1.Width=120;</div><div>&nbsp; resim1.Align=alBottom;</div><div>&nbsp; resim1.Margins.Right=350;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //resim2</div><div>&nbsp; resim2=AnaForm.AddNewImage(AnaForm,'resim2');</div><div>&nbsp; AnaForm.SetImage(resim2,'<a href="https://cdn0.ic&#111;nfinder.com/data/ic&#111;ns/phosphor-thin-vol-3/256/number-circle-three-thin-512.png" target="_blank" rel="nofollow">https://cdn0.iconfinder.com/data/icons/phosphor-thin-vol-3/256/number-circle-three-thin-512.png</a>');</div><div>&nbsp; resim2.Height=120;</div><div>&nbsp; resim2.Width=120;</div><div>&nbsp; resim2.Align=alCenter;</div><div>&nbsp; resim2.Margins.Right=500;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //resim3</div><div>&nbsp; resim3=AnaForm.AddNewImage(AnaForm,'resim3');</div><div>&nbsp; AnaForm.SetImage(resim3,'<a href="https://cdn0.ic&#111;nfinder.com/data/ic&#111;ns/phosphor-thin-vol-3/256/number-circle-five-thin-512.png" target="_blank" rel="nofollow">https://cdn0.iconfinder.com/data/icons/phosphor-thin-vol-3/256/number-circle-five-thin-512.png</a>');</div><div>&nbsp; resim3.Height=65;</div><div>&nbsp; resim3.Width=65;</div><div>&nbsp; resim3.Align=alCenter;</div><div>&nbsp; resim3.Margins.Left=500;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //resim4</div><div>&nbsp; resim4=AnaForm.AddNewImage(AnaForm,'resim4');</div><div>&nbsp; AnaForm.SetImage(resim4,'<a href="https://cdn0.ic&#111;nfinder.com/data/ic&#111;ns/phosphor-thin-vol-3/256/number-circle-seven-thin-512.png" target="_blank" rel="nofollow">https://cdn0.iconfinder.com/data/icons/phosphor-thin-vol-3/256/number-circle-seven-thin-512.png</a>');</div><div>&nbsp; resim4.Height=120;</div><div>&nbsp; resim4.Width=120;</div><div>&nbsp; resim4.Align=alBottom;</div><div>&nbsp; resim4.Margins.Left=400;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //resim5</div><div>&nbsp; resim5=AnaForm.AddNewImage(AnaForm,'resim5');</div><div>&nbsp; AnaForm.SetImage(resim5,'<a href="https://cdn0.ic&#111;nfinder.com/data/ic&#111;ns/phosphor-thin-vol-3/256/number-circle-nine-thin-512.png" target="_blank" rel="nofollow">https://cdn0.iconfinder.com/data/icons/phosphor-thin-vol-3/256/number-circle-nine-thin-512.png</a>');</div><div>&nbsp; resim5.Height=80;</div><div>&nbsp; resim5.Width=80;</div><div>&nbsp; resim5.Align=alTop;</div><div>&nbsp; resim5.Margins.Right=200;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //resim6</div><div>&nbsp; resim6=AnaForm.AddNewImage(AnaForm,'resim6');</div><div>&nbsp; AnaForm.SetImage(resim6,'<a href="https://cdn0.ic&#111;nfinder.com/data/ic&#111;ns/phosphor-thin-vol-3/256/number-circle-six-thin-512.png" target="_blank" rel="nofollow">https://cdn0.iconfinder.com/data/icons/phosphor-thin-vol-3/256/number-circle-six-thin-512.png</a>');</div><div>&nbsp; resim6.Height=80;</div><div>&nbsp; resim6.Width=80;</div><div>&nbsp; resim6.Align=alTop;</div><div>&nbsp; resim6.Margins.Left=400;</div><div>&nbsp;</div><div>&nbsp; //bomba1</div><div>&nbsp; bomba1=AnaForm.AddNewImage(AnaForm,'bomba1');</div><div>&nbsp; AnaForm.SetImage(bomba1,'<a href="https://cdn2.ic&#111;nfinder.com/data/ic&#111;ns/nasty/60/apocolypse_nuclear_explosi&#111;n_atomic_bomb-256.png" target="_blank" rel="nofollow">https://cdn2.iconfinder.com/data/icons/nasty/60/apocolypse_nuclear_explosion_atomic_bomb-256.png</a>');</div><div>&nbsp; bomba1.Height=60;</div><div>&nbsp; bomba1.Width=60;</div><div>&nbsp; bomba1.Align=alBottom;</div><div>&nbsp; bomba1.Margins.Left=200;</div><div>&nbsp;&nbsp;</div><div>&nbsp; //time1</div><div>&nbsp; time1=AnaForm.AddNewImage(AnaForm,'time1');</div><div>&nbsp; AnaForm.SetImage(time1,'<a href="https://cdn4.ic&#111;nfinder.com/data/ic&#111;ns/basic-ui-2-line/32/clock-time-ticker-times-hour-256.png" target="_blank" rel="nofollow">https://cdn4.iconfinder.com/data/icons/basic-ui-2-line/32/clock-time-ticker-times-hour-256.png</a>');</div><div>&nbsp; time1.Height=45;</div><div>&nbsp; time1.Width=45;</div><div>&nbsp; time1.Align=alLeft;</div><div>&nbsp; time1.Margins.Left=10;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Başlık Label'ı</div><div>&nbsp; GirisLabeli = AnaForm.AddNewLabel(AnaForm, 'GirisLabeli', 'TimeTap');</div><div>&nbsp; GirisLabeli.StyledSettings = ssFamily;</div><div>&nbsp; GirisLabeli.TextSettings.Font.Size = 24;</div><div>&nbsp; GirisLabeli.Align = alTop;</div><div>&nbsp; GirisLabeli.Height = 50;</div><div>&nbsp; GirisLabeli.Width = 200;</div><div>&nbsp; GirisLabeli.Margins.Left=300;</div><div>&nbsp; GirisLabeli.Position.X = (AnaForm.clWidth / 2) - (GirisLabeli.Width / 2);</div><div>&nbsp; GirisLabeli.Position.Y = 50;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Kullanıcı Adı Bölümü</div><div>&nbsp; KullaniciAdiEdt = AnaForm.AddNewEdit(AnaForm,'KullaniciAdiEdt', 'Kullanici Adinizi Giriniz');</div><div>&nbsp; KullaniciAdiEdt.Align = alNone;</div><div>&nbsp; KullaniciAdiEdt.Margins.Top=30;</div><div>&nbsp; KullaniciAdiEdt.Width = 200;</div><div>&nbsp; KullaniciAdiEdt.Height = 30;</div><div>&nbsp; KullaniciAdiEdt.Position.X = (AnaForm.clWidth / 2) - (KullaniciAdiEdt.Width / 2) + 2;</div><div>&nbsp; KullaniciAdiEdt.Position.Y = (AnaForm.clHeight / 2) - (KullaniciAdiEdt.Height / 2) - 75;</div><div>&nbsp; KullaniciAdiEdt.TextPrompt = 'Kullanıcı Adınızı Girin';</div><div>&nbsp; KullaniciAdiEdt.MaxLength=17;&nbsp; //Belirli miktarda kullanıcı adı girebilir.</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Başlat Butonu</div><div>&nbsp; OyunGirisButonu = AnaForm.AddNewProButton(AnaForm, 'OyunGirisButonu', 'Başlat');</div><div>&nbsp; OyunGirisButonu.clProSettings.BackgroundColor=clAlphaColor.clHexToColor('#e0d1d1');</div><div>&nbsp; OyunGirisButonu.Margins.Top= 50;</div><div>&nbsp; OyunGirisButonu.Align = alNone;</div><div>&nbsp; OyunGirisButonu.Width = 100;</div><div>&nbsp; OyunGirisButonu.Height= 50;</div><div>&nbsp; OyunGirisButonu.Position.X = (AnaForm.clWidth / 2) - (OyunGirisButonu.Width / 2);</div><div>&nbsp; OyunGirisButonu.Position.Y = (AnaForm.clHeight / 2) - (OyunGirisButonu.Height / 2);</div><div>&nbsp; OyunGirisButonu.SetclProSettings(OyunGirisButonu.clProSettings);</div><div>&nbsp; AnaForm.AddNewEvent(OyunGirisButonu, tbeOnClick, 'OyunGirisButonuClick');</div><div>&nbsp;&nbsp;</div><div>&nbsp; // SkorTablosu</div><div>&nbsp; SkorTablosu = AnaForm.AddNewProButton(AnaForm, 'SkorTablosu', '');</div><div>&nbsp; clComponent.SetupComponent(SkorTablosu,'{"RoundHeight": 2, "RoundWidth": 2, "BorderColor": "#000000"}');</div><div>&nbsp; AnaForm.SetImage(SkorTablosu, '<a href="https://cdn3.ic&#111;nfinder.com/data/ic&#111;ns/customer-experience-1/32/Score-256.png" target="_blank" rel="nofollow">https://cdn3.iconfinder.com/data/icons/customer-experience-1/32/Score-256.png</a>');</div><div>&nbsp; SkorTablosu.clProSettings.BackgroundColor=clAlphaColor.clHexToColor('#b4f500');</div><div>&nbsp; SkorTablosu.Margins.Left= 480;</div><div>&nbsp; SkorTablosu.Margins.bottom=500;</div><div>&nbsp; SkorTablosu.Align = alNone;</div><div>&nbsp; SkorTablosu.Width = 70;</div><div>&nbsp; SkorTablosu.Height= 40;</div><div>&nbsp; SkorTablosu.SetclProSettings(SkorTablosu.clProSettings);</div><div>&nbsp; AnaForm.AddNewEvent(SkorTablosu, tbeOnClick, 'SkorTablosuClick');</div><div>&nbsp;&nbsp;</div><div>&nbsp; //Admin Girişi</div><div>&nbsp; adminGirisi = AnaForm.AddNewProButton(AnaForm, 'adminGirisi', '');</div><div>&nbsp; clComponent.SetupComponent(adminGirisi,'{"RoundHeight": 2, "RoundWidth": 2, "BorderColor": "#000000"}');</div><div>&nbsp; AnaForm.SetImage(adminGirisi, '<a href="https://cdn4.ic&#111;nfinder.com/data/ic&#111;ns/essential-app-2/16/user-avatar-human-admin-login-256.png" target="_blank" rel="nofollow">https://cdn4.iconfinder.com/data/icons/essential-app-2/16/user-avatar-human-admin-login-256.png</a>');</div><div>&nbsp; adminGirisi.clProSettings.BackgroundColor=clAlphaColor.clHexToColor('#00b8f5');</div><div>&nbsp; adminGirisi.Margins.Right= 630;</div><div>&nbsp; adminGirisi.Margins.bottom=500;</div><div>&nbsp; adminGirisi.Align = alNone;</div><div>&nbsp; adminGirisi.Width = 70;</div><div>&nbsp; adminGirisi.Height= 40;</div><div>&nbsp; adminGirisi.SetclProSettings(adminGirisi.clProSettings);</div><div>&nbsp; AnaForm.AddNewEvent(adminGirisi, tbeOnClick, 'adminGirisiClick');</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; TclButton(anaForm.clFindComponent('BtnFormMenu')).Visible = False; //Clomosy Form Menu kapatma olayı.</div><div>&nbsp; TclButton(anaForm.clFindComponent('BtnGoBack')).Visible = False;&nbsp; //Clomosy Geri tuşunu kapatma olayı.</div><div><br></div><div>&nbsp;&nbsp;</div><div>&nbsp; AnaForm.SetFormColor('#ad6ec4','#6d6bbd',clGHorizontal); //AnaForm'un arkaplanını renklendirme.</div><div>&nbsp;</div><div>&nbsp; AnaForm.Run; // AnaForm'u çalıştırma.</div><div>&nbsp;</div><div>&nbsp;}</div></div><div><br></div><div>Oyun Unit Kodları:</div><div><br></div><div><div><br></div><div>Var</div><div>&nbsp; AnaForm:TclForm;</div><div>&nbsp;&nbsp;</div><div>&nbsp;//Buton kısmı</div><div>&nbsp; btn1 : TClProButton;&nbsp;&nbsp;</div><div>&nbsp; Zaman : TCLTimer;&nbsp;</div><div>&nbsp; sayac:Integer;</div><div>//Random Renk verme kısmı</div><div>&nbsp; RndmTimer: TClTimer;</div><div>&nbsp; colorArray : array of String;</div><div>//Oyun Süresi kısmı</div><div>&nbsp; oyunzaman:TCLTimer;</div><div>&nbsp; sayac1:Integer;</div><div>&nbsp; lblTimer: TCLLabel;</div><div>//Random oyun süresi arttırma azaltma için ekranda çıkan görseller</div><div>&nbsp; surearttirma: TCLImage;&nbsp;</div><div>&nbsp; sureazaltma: TCLImage;</div><div><br></div><div>&nbsp; SkorVeritabani: TClSqlQuery;</div><div>&nbsp; KullaniciAdi:String;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; void SetupSqlConnection</div><div>{</div><div>&nbsp; Clomosy.DBSQLServerConnect('SQL Server', '192.168.1.149', 'sa', '1', 'Oyun', 1433);</div><div>}</div><div><br></div><div><br></div><div>//Buton haricinde ekranın herhangi bir yerine basınca oyundan çıkmak için.</div><div>void onFormMouseDown</div><div>{</div><div>&nbsp; ShowMessage('Yandınız.Oyuna tekrardan başlayınız.');</div><div>&nbsp; AnaForm.clHide;</div><div>&nbsp; oyunzaman.Enabled=False;</div><div>}</div><div><br></div><div>//Başlangıç ekranından sonra olacak olay için</div><div>void OyunBaslangic;</div><div>{</div><div>&nbsp; btn1.Visible=True;</div><div>}</div><div><br></div><div>//Random olarak arkaplan rengini değiştirmek için.</div><div>void randomColor;</div><div>var</div><div>&nbsp; randmDeger: Integer;</div><div>{</div><div>&nbsp; colorArray = &#091;'#26cf3a','#ff780a','#9a7de8','#813b3b','#a664c4','#6492c4','#81c464'&#093;;</div><div>&nbsp; randmDeger =&nbsp; clMath.GenerateRandom(0,6);</div><div>&nbsp; AnaForm.SetFormColor(colorArray&#091;randmDeger&#093;,'',clGNone);</div><div>}</div><div><br></div><div>//Random olarakm btn1'in yerini değiştirmek için kısayol.</div><div>void randomPosition;</div><div>{</div><div>&nbsp;if((sayac &gt;= 32) &amp;&amp; (sayac &lt;= 55))</div><div>&nbsp;{</div><div>&nbsp; &nbsp; btn1.Position.X = Abs((Random() * AnaForm.clWidth) - btn1.Width);</div><div>&nbsp; &nbsp; btn1.Position.Y = Abs((Random() * AnaForm.clHeight) - btn1.Height);</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>//Belirli zamanda ekranın herhangi bir yerinde çıkan görsele basınca ek süre eklemek için.</div><div><br></div><div>void eksure&nbsp; &nbsp;//Ekranın ortasındaki sayı 3 veya büyük olunca çıkması için yapıldı.</div><div>{</div><div>&nbsp; if(IntToStr(btn1.Text) &gt;= 3)</div><div>&nbsp; {</div><div>&nbsp; surearttirma.visible=False;</div><div>&nbsp; sayac1 = sayac1+5;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>//Belirli zamanda ekranın herhangi bir yerinde çıkan görsele basınca süre azaltmak için.</div><div><br></div><div>void sureazalt&nbsp; //Ekranın ortasındaki sayı 3 veya büyük olunca çıkması için yapıldı.</div><div>{</div><div>&nbsp; if(IntToStr(btn1.Text) &gt;= 3)</div><div>&nbsp; {</div><div>&nbsp; sureazaltma.visible=False;</div><div>&nbsp; sayac1 = sayac1-2;</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>//btn1 içerisinde yazan sayıya göre işlemler döndüren kısım. randomColor,randomPosition,süre arttırma ve azaltma gibi işlemler yapar.&nbsp;</div><div>void zamanlayici;</div><div>{</div><div>//Bu fonksiyon RndmTimer'ın rastgale çalışmasını engellemiş oluyor.</div><div>&nbsp; if (sayac &gt;= 32)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; RndmTimer.Enabled = True;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; btn1.Text = IntToStr(sayac);</div><div><br></div><div>&nbsp; sayac = sayac + 1;&nbsp; //sayacı 1 1 arttırır.</div><div>&nbsp; oyunzaman.Enabled=True; //oyun zamanı etkinleştirir</div><div>&nbsp; btn1.Text = IntToStr(sayac); //btn1 içerisindeki sayı</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac == 3)&nbsp; //sureazaltma</div><div>&nbsp; {</div><div>&nbsp; &nbsp; sureazaltma.Position.X = Abs((Random() * AnaForm.clWidth) - sureazaltma.Width);</div><div>&nbsp; &nbsp; sureazaltma.Position.Y = Abs((Random() * AnaForm.clHeight) - sureazaltma.Height);</div><div>&nbsp; &nbsp; sureazaltma.visible=True;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac == 5)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; AnaForm.SetFormColor('#23c7c5','',clGNone);</div><div>&nbsp; &nbsp; sayac1 = sayac1 + 3;</div><div>&nbsp; &nbsp; btn1.Position.X = Abs((Random() * AnaForm.clWidth) - btn1.Width);</div><div>&nbsp; &nbsp; btn1.Position.Y = Abs((Random() * AnaForm.clHeight) - btn1.Height);</div><div>&nbsp; &nbsp; surearttirma.Position.X = Abs((Random() * AnaForm.clWidth) - surearttirma.Width);</div><div>&nbsp; &nbsp; surearttirma.Position.Y = Abs((Random() * AnaForm.clHeight) - surearttirma.Height);</div><div>&nbsp; &nbsp; surearttirma.visible=True;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac==9)&nbsp; &nbsp;//sureazaltma</div><div>&nbsp; {</div><div>&nbsp; &nbsp; sureazaltma.Position.X = Abs((Random() * AnaForm.clWidth) - sureazaltma.Width);</div><div>&nbsp; &nbsp; sureazaltma.Position.Y = Abs((Random() * AnaForm.clHeight) - sureazaltma.Height);</div><div>&nbsp; &nbsp; sureazaltma.visible=True;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac == 13)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; AnaForm.SetFormColor('#e01f1f','',clGNone);</div><div>&nbsp; &nbsp; sayac1 = sayac1 + 5;</div><div>&nbsp; &nbsp; btn1.Position.X = Abs((Random() * AnaForm.clWidth) - btn1.Width);</div><div>&nbsp; &nbsp; btn1.Position.Y = Abs((Random() * AnaForm.clHeight) - btn1.Height);</div><div>&nbsp; &nbsp; surearttirma.Position.X = Abs((Random() * AnaForm.clWidth) - surearttirma.Width);</div><div>&nbsp; &nbsp; surearttirma.Position.Y = Abs((Random() * AnaForm.clHeight) - surearttirma.Height);</div><div>&nbsp; &nbsp; surearttirma.visible=True;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac==17)&nbsp; &nbsp;//sureazaltma</div><div>&nbsp; {</div><div>&nbsp; &nbsp; sureazaltma.Position.X = Abs((Random() * AnaForm.clWidth) - sureazaltma.Width);</div><div>&nbsp; &nbsp; sureazaltma.Position.Y = Abs((Random() * AnaForm.clHeight) - sureazaltma.Height);</div><div>&nbsp; &nbsp; sureazaltma.visible=True;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac == 25)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; AnaForm.SetFormColor('#cfeb00','#db7edd',clGHorizontal);</div><div>&nbsp; &nbsp; sayac1 = sayac1 + 7;</div><div>&nbsp; &nbsp; btn1.Position.X = Abs((Random() * AnaForm.clWidth) - btn1.Width);</div><div>&nbsp; &nbsp; btn1.Position.Y = Abs((Random() * AnaForm.clHeight) - btn1.Height);</div><div>&nbsp; &nbsp; surearttirma.Position.X = Abs((Random() * AnaForm.clWidth) - surearttirma.Width);</div><div>&nbsp; &nbsp; surearttirma.Position.Y = Abs((Random() * AnaForm.clHeight) - surearttirma.Height);</div><div>&nbsp; &nbsp; surearttirma.visible=True;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if(sayac==29)&nbsp; &nbsp;//sureazaltma</div><div>&nbsp; {</div><div>&nbsp; &nbsp; sureazaltma.Position.X = Abs((Random() * AnaForm.clWidth) - sureazaltma.Width);</div><div>&nbsp; &nbsp; sureazaltma.Position.Y = Abs((Random() * AnaForm.clHeight) - sureazaltma.Height);</div><div>&nbsp; &nbsp; sureazaltma.visible=True;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if((sayac &gt;= 32) &amp;&amp; (sayac &lt;= 55))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; RndmTimer.Enabled = True;</div><div>&nbsp; &nbsp; randomPosition();</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (sayac &gt;= 56)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; AnaForm.SetFormColor('#ffae00','',clGNone);</div><div>&nbsp; &nbsp; &nbsp; RndmTimer.Enabled = False;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; btn1.Text = IntToStr(sayac);</div><div><br></div><div>}</div><div><br></div><div>//Oyun süresi için oluşturulmuş kısım</div><div>void sure;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if(sayac1 == 0)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; oyunzaman.Enabled = False;</div><div>&nbsp; &nbsp; &nbsp; lblTimer.caption = IntToStr(sayac1);</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Süreniz Doldu!');</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Puanınız: ' + IntToStr(sayac));</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Skoru veritabanına kaydet</div><div>&nbsp; &nbsp; &nbsp; SkorVeritabani = TClSqlQuery.Create(nil);</div><div>&nbsp; &nbsp; &nbsp;try</div><div>&nbsp; &nbsp; &nbsp; SkorVeritabani.Connection = Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; SkorVeritabani.SQL.Text =</div><div>&nbsp; &nbsp; &nbsp; 'INSERT INTO Skorlar (Skor,KullaniciId) VALUES ('+ IntToStr(sayac) + ', ' + QuotedStr(Clomosy.GlobalVariableString) +')';</div><div>&nbsp; &nbsp; &nbsp; SkorVeritabani.ExecSQL;</div><div>&nbsp; &nbsp; &nbsp; finally</div><div>&nbsp; &nbsp; &nbsp; SkorVeritabani.Free;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; lblTimer.caption = IntToStr(sayac1);</div><div>&nbsp; &nbsp; &nbsp; Dec(sayac1);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div><br></div><div>&nbsp;//Ekranda bulunan her şeyin özellik kısmı eklemek için.</div><div>&nbsp;{</div><div>&nbsp; &nbsp;sayac=0;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;sayac1=5;</div><div>&nbsp; &nbsp;</div><div>&nbsp; AnaForm = TclForm.Create(Self);</div><div>&nbsp;&nbsp;</div><div>&nbsp; SetupSqlConnection;</div><div>&nbsp;&nbsp;</div><div>&nbsp; TclButton(anaForm.clFindComponent('BtnFormMenu')).Visible = False; //Clomosy'nin kendi uygulaması menü özelliği kapatıldı.</div><div>&nbsp; TclButton(anaForm.clFindComponent('BtnGoBack')).Visible = False;&nbsp; //Clomosy'nin kendi uygulaması geri özelliği kapatıldı.</div><div>&nbsp;&nbsp;</div><div>&nbsp; //Random color kısmı</div><div>&nbsp; RndmTimer = AnaForm.AddNewTimer(AnaForm,'RndmTimer',100); //sürekli olacağı için timer kullanıldı.</div><div>&nbsp; RndmTimer.Enabled = False;</div><div>&nbsp; AnaForm.AddNewEvent(RndmTimer,tbeOnTimer,'randomColor');</div><div>&nbsp;&nbsp;</div><div>&nbsp; //oyunzaman süresi</div><div>&nbsp; oyunzaman=AnaForm.AddNewTimer(AnaForm,'oyunzaman',1000);</div><div>&nbsp; oyunzaman.Enabled=False;</div><div>&nbsp; AnaForm.AddNewEvent(oyunzaman,tbeOnTimer,'sure');</div><div>&nbsp; lblTimer=AnaForm.AddNewLabel(AnaForm,'lblTimer','');</div><div>&nbsp; lblTimer.StyledSettings = ssFamily;</div><div>&nbsp; lblTimer.TextSettings.Font.Size = 35;</div><div>&nbsp; lblTimer.Align = alTop;</div><div>&nbsp; lblTimer.Height=50;</div><div>&nbsp; lblTimer.Width=50;</div><div>&nbsp; lblTimer.Margins.Left = 170;</div><div>&nbsp; //oyunzaman süresi</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; AnaForm.SetFormColor('#52504d','',clGNone);&nbsp;</div><div>&nbsp; btn1 = AnaForm.AddNewProButton(AnaForm,'btn1','Başla');</div><div>&nbsp; surearttirma = AnaForm.AddNewImage(AnaForm,'surearttirma');</div><div>&nbsp; sureazaltma = AnaForm.AddNewImage(AnaForm,'sureazaltma');</div><div>&nbsp;&nbsp;</div><div>&nbsp; btn1.Align = alNone;</div><div>&nbsp; btn1.Width = 100;</div><div>&nbsp; btn1.Height = 100;</div><div>&nbsp; btn1.Position.X = (AnaForm.clWidth / 2) - (btn1.Width / 2);&nbsp; //konum1.</div><div>&nbsp; btn1.Position.Y = (AnaForm.clHeight / 2) - (btn1.Width / 2); // konum2.</div><div>&nbsp; btn1.visible=True;</div><div>&nbsp; &nbsp;</div><div>&nbsp; AnaForm.SetImage(surearttirma,'<a href="https://cdn2.ic&#111;nfinder.com/data/ic&#111;ns/chess-58/377/Time-256.png" target="_blank" rel="nofollow">https://cdn2.iconfinder.com/data/icons/chess-58/377/Time-256.png</a>');</div><div>&nbsp; surearttirma.Align = alNone;</div><div>&nbsp; surearttirma.Height = 35;</div><div>&nbsp; surearttirma.Width = 35;</div><div>&nbsp; surearttirma.Position.X = (AnaForm.clWidth / 2) - (surearttirma.Width / 2);&nbsp; //surearttirma konum1.</div><div>&nbsp; surearttirma.Position.Y = (AnaForm.clHeight / 2) - (surearttirma.Width / 2); //surearttirma konum2.</div><div>&nbsp; surearttirma.visible=False;&nbsp; //Ekranın farklı yerlerinde ek süre için çıkan resim görünürlüğü.</div><div>&nbsp; &nbsp;</div><div>&nbsp; //SÜRE AZALTMA</div><div>&nbsp; AnaForm.SetImage(sureazaltma,'<a href="https://cdn2.ic&#111;nfinder.com/data/ic&#111;ns/nasty/60/apocolypse_nuclear_explosi&#111;n_atomic_bomb-256.png" target="_blank" rel="nofollow">https://cdn2.iconfinder.com/data/icons/nasty/60/apocolypse_nuclear_explosion_atomic_bomb-256.png</a>');</div><div>&nbsp; sureazaltma.Align = alNone;</div><div>&nbsp; sureazaltma.Height = 40;</div><div>&nbsp; sureazaltma.Width = 40;</div><div>&nbsp; sureazaltma.Position.X = (AnaForm.clWidth / 2) - (sureazaltma.Width / 2);&nbsp; //sureazaltma konum1.</div><div>&nbsp; sureazaltma.Position.Y = (AnaForm.clHeight / 2) - (sureazaltma.Width / 2); //sureazaltma konum2.</div><div>&nbsp; sureazaltma.visible=False;&nbsp; //Ekranın farklı yerlerinde ek süre için çıkan resim görünürlüğü.</div><div>&nbsp;&nbsp;</div><div>&nbsp; btn1.clProSettings.BorderColor = clAlphaColor.clHexToColor('#a0a3b1');</div><div>&nbsp; btn1.clProSettings.FontColor = clAlphaColor.clHexToColor('#050505');</div><div>&nbsp; btn1.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; btn1.clProSettings.IsTransparent = False;</div><div>&nbsp; btn1.clProSettings.FontSize = 12;</div><div>&nbsp; btn1.clProSettings.FontVertAlign = palcenter;//palLeading , palCenter , palTrailing</div><div>&nbsp; btn1.clProSettings.FontHorzAlign = palCenter;</div><div>&nbsp; btn1.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; btn1.clProSettings.IsRound = True;</div><div>&nbsp; btn1.clProSettings.RoundHeight = 50;</div><div>&nbsp; btn1.clProSettings.RoundWidth = 50;</div><div>&nbsp; btn1.clProSettings.BorderWidth = 3;</div><div>&nbsp; btn1.SetclProSettings(btn1.clProSettings);</div><div>&nbsp;&nbsp;</div><div><br></div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(btn1,tbeOnClick,'zamanlayici');&nbsp; //btn1'e tıklanınca süre etkinleşmesi için tıklanma olayı.</div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(surearttirma, tbeOnClick, 'eksure');&nbsp; //ek süre için tıklanma olayı.</div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(sureazaltma, tbeOnClick, 'sureazalt'); //süre azaltmak için tıklanma olayı.</div><div><br></div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;AnaForm.AddNewEvent(AnaForm, tbeOnMouseDown, 'onFormMouseDown');&nbsp;</div><div>&nbsp; &nbsp;AnaForm.Run;</div><div>&nbsp;</div><div>&nbsp;}</div></div><div><br></div><div>Biz şimdi Oyun Unit kodlarımda void sure kısmında KullaniciId'yi&nbsp;QuotedStr(Clomosy.GlobalVariableString) buna bağladık. QuotedStr(Clomosy.GlobalVariableString) buda AnaKod kısmında KullaniciAdiEdt.Text kısmına bağlı değil mi?&nbsp; KullaniciAdiEdt.Text' te bir üstünde bulunan&nbsp;&nbsp;KullaniciAdi = KullaniciAdiEdt.Text; kısmıyla eşleştirildiğini düşünüyorum ben. Ama nedense işte string değeri almıyorda sadece int değerini mssql veri tabanına alıyor.</div>]]>
   </description>
   <pubDate>Tue, 11 Jun 2024 18:19:47 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=883#883</guid>
  </item> 
  <item>
   <title><![CDATA[Veritabanına Kullanıcı Adı Çekme : Merhaba EmreSan&#305;n&#305;rm KullaniciId...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=881#881</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 610<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Haziran&nbsp;2024 Saat 18:09<br /><br />Merhaba Emre&nbsp;<div>Sanınırm KullaniciId kalmış sql Insert cümlende bunu değiştirmen gerekiyor. OyuncuAdi yazman gerekiyor. Çünki sql senden int değer türü bekliyor.</div><div>eğer anlamazsan kodunu yükler misin&nbsp;</div><div>Kolay Gelsin&nbsp;</div>]]>
   </description>
   <pubDate>Tue, 11 Jun 2024 18:09:27 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=881#881</guid>
  </item> 
  <item>
   <title><![CDATA[Veritabanına Kullanıcı Adı Çekme : Merhabalar;&#304;stedi&#287;im gibi sonu&#231;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=875#875</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=159">emre.gungor01</a><br /><strong>Konu:</strong> 610<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Haziran&nbsp;2024 Saat 16:46<br /><br /><span style=": rgb251, 251, 253;">Merhabalar;</span><div style=": rgb251, 251, 253;">İstediğim gibi sonuç aldım teşekkürler. Fakat bu sefer hesaba katmadığımız bir sorun var. Beni mssql veritabanımda bulunan dbo.Kullaniicilar tablomda Id int türünde bunda sıkıntı yok, OyuncuAdi nvarchar(50) türünde&nbsp;</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;"><b>Görsel;</b></div><div style=": rgb251, 251, 253;"><b><img src="uploads/159/veritabanı.jpg" height="124" width="483" border="0" /><br></b></div><div style=": rgb251, 251, 253;"><div>Giriş ekranında string türünde veriyle giriş yapabiliyorum ve oyunumuda oynayabiliyorum, oyun sonunda&nbsp;</div><div><br></div><div><img src="uploads/159/veri.jpg" height="136" width="332" border="0" /><br></div><div><br></div><div>Bu hatayla karşılaşıyorum kullaniicilar tabloma alıyor kullanıcı adını fakat dbo.Skorlar tabloma o ismi almıyor. Bende giriş ekranında&nbsp;<b>int&nbsp;</b>tipinde değer girerek denedim ve oluyor hem dbo.Kullanicilar tabloma ekliyor hemde dbo.Skorlar tabloma ekliyor.</div><div><br></div><div><b>Görseller:</b></div><div><b><img src="uploads/159/giriş.jpg" height="159" width="270" border="0" /><br></b></div><div><b>Böyle girdiğimde sorun çıkmıyor.Sadece string türünde kullanıcı adı girdiğimde çıkıyor.</b></div><div><b><img src="uploads/159/oyun.jpg" height="186" width="258" border="0" /><br></b></div><div><b><br></b></div><div><b>Burası Kullaniicilar tablosu:</b></div><div><b><img src="uploads/159/kullanici.jpg" height="28" width="127" border="0" /><br></b></div><div><b><br></b></div><div><b>Burası Skorlar tablosu:</b></div><div><b><img src="uploads/159/skor.jpg" height="18" width="233" border="0" /><br></b></div><div><b><br></b></div><div>Peki ben giriş ekranında string veri türünde girmek istediğimde skorlar tabloma kaydetmiyor, kullaniicilar tabloma kaydediyorsa her iki tabloma da nasıl kayıt ettirebilirim?</div></div>]]>
   </description>
   <pubDate>Tue, 11 Jun 2024 16:46:54 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=875#875</guid>
  </item> 
  <item>
   <title><![CDATA[Veritabanına Kullanıcı Adı Çekme : Merhaba Emre,g&#246;rselleri ve hatalar&#305;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=874#874</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=132">Atiker01</a><br /><strong>Konu:</strong> 610<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Haziran&nbsp;2024 Saat 16:33<br /><br />Merhaba Emre,<div><br></div><div>görselleri ve hataları yüklememişsin. Tekrar atabilir misin?</div>]]>
   </description>
   <pubDate>Tue, 11 Jun 2024 16:33:29 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=874#874</guid>
  </item> 
  <item>
   <title><![CDATA[Veritabanına Kullanıcı Adı Çekme : Merhabalar;&#304;stedi&#287;im gibi sonu&#231;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=873#873</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=159">emre.gungor01</a><br /><strong>Konu:</strong> 610<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Haziran&nbsp;2024 Saat 16:28<br /><br />Merhabalar;<div>İstediğim gibi sonuç aldım teşekkürler. Fakat bu sefer hesaba katmadığımız bir sorun var. Beni mssql veritabanımda bulunan dbo.Kullaniicilar tablomda Id int türünde bunda sıkıntı yok, OyuncuAdi nvarchar(50) türünde&nbsp;</div><div><br></div><div><b>Görsel:</b></div><div><br></div><div><img src="" border="0" /></div><div>Giriş ekranında string türünde veriyle giriş yapabiliyorum ve oyunumuda oynayabiliyorum, oyun sonunda&nbsp;</div><div><br></div><div><img src="" border="0" /></div><div>Bu hatayla karşılaşıyorum kullaniicilar tabloma alıyor kullanıcı adını fakat dbo.Skorlar tabloma o ismi almıyor. Bende giriş ekranında <b>int </b>tipinde değer girerek denedim ve oluyor hem dbo.Kullanicilar tabloma ekliyor hemde dbo.Skorlar tabloma ekliyor.</div><div><br></div><div><b>Görseller:</b></div><div><b><br></b></div><div><img src="" border="0" /></div><div><br></div><div><img src="" border="0" /></div><div><br></div><div><b>Burası Skorlar tablosu:</b></div><div><img src="" border="0" /></div><div><br></div><div><br></div><div><b>Burası Kullaniicilar tablosu:</b></div><div><img src="" border="0" /></div><div><br></div><div><br></div><div>Peki ben giriş ekranında string veri türünde girmek istediğimde skorlar tabloma kaydetmiyor, kullaniicilar tabloma kaydediyorsa her iki tabloma da nasıl kayıt ettirebilirim?</div>]]>
   </description>
   <pubDate>Tue, 11 Jun 2024 16:28:17 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=873#873</guid>
  </item> 
  <item>
   <title><![CDATA[Veritabanına Kullanıcı Adı Çekme : Merhaba Emre,/Girilen Kullan&#305;c&#305;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=868#868</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 610<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Haziran&nbsp;2024 Saat 11:42<br /><br />Merhaba Emre,<div><br></div><div><div style=": rgb251, 251, 253;">/Girilen Kullanıcı Adlarını Veri Tabanına almak için.</div><div style=": rgb251, 251, 253;">void OyunGirisButonuClick</div><div style=": rgb251, 251, 253;">{</div><div style=": rgb251, 251, 253;">&nbsp; OyunVeritabani = TClSqlQuery.Create(nil);</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp;try</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; OyunVeritabani.Connection = Clomosy.DBSQLServerConnection;</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; // Kullanıcı adını ekleme veya varsa kullanıcı id'sini alma</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; OyunVeritabani.SQL.Text =&nbsp;</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; 'IF NOT EXISTS (SELECT 1 FROM Kullaniicilar WHERE OyuncuAdi = ' + QuotedStr(KullaniciAdiEdt.Text) + ') ' +</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; 'BEGIN ' +</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; 'INSERT INTO Kullaniicilar (OyuncuAdi) VALUES (' + QuotedStr(KullaniciAdiEdt.Text) + '); ' +</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; 'END; ' +</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; 'SELECT Id FROM Kullaniicilar WHERE OyuncuAdi = ' + QuotedStr(KullaniciAdiEdt.Text);</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; OyunVeritabani.Open;</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; KullaniciId = OyunVeritabani.FieldByName('Id').AsString;</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; KullaniciAdi = KullaniciAdiEdt.Text; // Kullanıcı adını al</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp;<span style="font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, Lato, &quot;Liberati&#111;n Sans&quot;, &quot;Noto Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, sans-serif; font-size: 15.2px;">Clomosy.GlobalVariableString =&nbsp;</span>KullaniciAdiEdt.Text; //Burada kullanıcı adının atamsını yaptın.</div><div style=": rgb251, 251, 253;">&nbsp; finally</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; OyunVeritabani.Free;</div><div style=": rgb251, 251, 253;">&nbsp; }</div><div style=": rgb251, 251, 253;">&nbsp; Clomosy.RunUnit('Oyun');&nbsp; //Oyun adlı Unit'e gitmek için.</div><div style=": rgb251, 251, 253;">}</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;"><div>//Oyun süresi için oluşturulmuş kısım</div><div>void sure;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if(sayac1 == 0)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; oyunzaman.Enabled = False;</div><div>&nbsp; &nbsp; &nbsp; lblTimer.caption = IntToStr(sayac1);</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Süreniz Doldu!');</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Puanınız: ' + IntToStr(sayac));</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Skoru veritabanına kaydet</div><div>&nbsp; &nbsp; &nbsp; SkorVeritabani = TClSqlQuery.Create(nil);</div><div>&nbsp; &nbsp; &nbsp;try</div><div>&nbsp; &nbsp; &nbsp; SkorVeritabani.Connection = Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; SkorVeritabani.SQL.Text = 'INSERT INTO Skorlar (Skor,KullaniciId) VALUES ('+ IntToStr(sayac),<span style=": rgb248, 249, 250; font-family: Menlo, C&#111;nsolas, M&#111;naco, &quot;Noto Mono&quot;, &quot;Nimbus Mono L&quot;, monospace; font-size: 15.2px;">QuotedStr</span>(<span style="font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;, Lato, &quot;Liberati&#111;n Sans&quot;, &quot;Noto Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, sans-serif; font-size: 15.2px;">Clomosy.GlobalVariableString</span>) +')';</div><div>&nbsp; &nbsp; &nbsp; SkorVeritabani.ExecSQL;</div><div>&nbsp; &nbsp; &nbsp; finally</div><div>&nbsp; &nbsp; &nbsp; SkorVeritabani.Free;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; lblTimer.caption = IntToStr(sayac1);</div><div>&nbsp; &nbsp; &nbsp; Dec(sayac1);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div></div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;"><br></div><div>İyi Çalışmalar</div></div>]]>
   </description>
   <pubDate>Tue, 11 Jun 2024 11:42:12 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=610&amp;PID=868#868</guid>
  </item> 
 </channel>
</rss>