[Yardım] attempt to compare table with

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı denizd

  • Yeni Üye
  • *
    • İleti: 37
: 21 Ekim 2021, 10:40:19

Kod
--261		local dbid   = getElementData(thePlayer, "dbid")
--262 local cek    = exports.mysql:query_fetch_assoc( "SELECT `chip` FROM `characters` WHERE `id`=" .. mysql:escape_string(dbid) )
--263
--264
--265 if not amount >= cek then
--266 outputChatBox("chip ?", thePlayer)
--267 return false
--268 end

[2021-10-21 00:39:38] ERROR: [R]\test-system\test.lua:265: attempt to compare table with boolean

or

[2021-10-21 00:39:38] ERROR: [R]\test-system\test.lua:265: attempt to compare table with string

çözemedim ben çalıştırınca bu hatayı veriyor help
 


MTASATURK

[Yardım] attempt to compare table with
« : 21 Ekim 2021, 10:40:19 »

Çevrimdışı Cassè

  • Acemi Üye
  • *
    • İleti: 110
Yanıtla #1 : 21 Ekim 2021, 19:23:09
Aldığın hataları Türkçeye çevirirsen zaten hatayı çözmen çok kolay olur. Yazdığın ilk hatada tablo değerini bool bir değer ile karşılaştırmaya çalıştığın için hata alıyorsun. 2. hatada da aynı şekilde tablo değerini string bir değer ile karşılaştırmaya çalıştığın için hata alıyorsun.