Jump to content

مساعدة


Recommended Posts

شباب بدي في إيديت بوكس لازم أقل شي 32 حرف

        serial_edit = guiCreateEdit(9, 64, 321, 24, "", false, mypanel)
if guiGetText(serial_edit) < 32 then
outputChatBox("No")
end

debug:

ERROR: test\client.lua\:40 attempt to compare string with number

Link to comment
1 hour ago, AnoirTiza said:

أيش هو المشكل إلى كان؟ و شكرا

انت جبت الكلام 

والكلام سترنق فـ ماينفع تقارنه بكميه 

فـ هو سوا string.len

يجيب عدد الحروف/الارقام اللي موجوده بالايديت عشان تصير كميه ويقدر يقارنها بكميه اخرى

Link to comment

شكرا

بدي أسويها تضهر ل3 ثواني فقط

جربت هذا الكود بس سوالي العكس

setTimer(function ()
guiSetText(label, "الرجاء إدخال سريال صحيح") --Поле ошибки в Reg табе
end,3000,1)

 

Edited by AnoirTiza
Link to comment
time_count = 1 -- إذا تبغاه يعيد الكرّة كل 3 ثواني بدون توقف حط بدل الواحد صفر

serial_edit = guiCreateEdit(9, 64, 321, 24, "", false, mypanel)

setTimer(
  
  	function()
    
    	if string.len(guiGetText(serial_edit)) < 32 then
      
			outputChatBox("No")
      	end
    
    end,
  
3000, time_count)

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...