AnoirTiza Posted January 13, 2019 Posted January 13, 2019 شباب بدي في إيديت بوكس لازم أقل شي 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
nxFairlywell Posted January 13, 2019 Posted January 13, 2019 serial_edit = guiCreateEdit(9, 64, 321, 24, "", false, mypanel) if string.len(guiGetText(serial_edit)) < 32 then outputChatBox("No") end 1
Rakan# Posted January 14, 2019 Posted January 14, 2019 1 hour ago, AnoirTiza said: أيش هو المشكل إلى كان؟ و شكرا انت جبت الكلام والكلام سترنق فـ ماينفع تقارنه بكميه فـ هو سوا string.len يجيب عدد الحروف/الارقام اللي موجوده بالايديت عشان تصير كميه ويقدر يقارنها بكميه اخرى
AnoirTiza Posted January 14, 2019 Author Posted January 14, 2019 (edited) شكرا بدي أسويها تضهر ل3 ثواني فقط جربت هذا الكود بس سوالي العكس setTimer(function () guiSetText(label, "الرجاء إدخال سريال صحيح") --Поле ошибки в Reg табе end,3000,1) Edited January 14, 2019 by AnoirTiza
nxFairlywell Posted January 14, 2019 Posted January 14, 2019 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)
AnoirTiza Posted January 14, 2019 Author Posted January 14, 2019 أضن أنه هناك سوء تفاهم قصدي guiSetText(label, "الرجاء إدخال سريال صحيح") --Поле ошибки в Reg табе بدي الكتابة ذي تضهر 3 ثواني و تروح
Doffy Posted January 15, 2019 Posted January 15, 2019 1 hour ago, *RayaN-Alharbi. said: setTimer(setElementAlpha,3000,1,label,0) * guiSetAlpha 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now