KaduRo Posted May 17, 2014 Share Posted May 17, 2014 الموضوع في الرابط تحت http://forum.mta4arabs.com/t521 Link to comment
Booo Posted May 22, 2014 Share Posted May 22, 2014 السلام عليكم استخدم وظيفة loadstring() اخ داوي ; اللي اقصده انه إذا كتبت داخل editBox وسويت guiGetText راح يكون كذا "(" outputChatBox("Test" < وهذي مو لغة برمجية , يعني لو سوي كذا , راح يكون كلام فقط وانا ابي هذا الكلام يتحول لـ ("outputChatBox("Test بدون الـ " " ارجوا أنه وضح مقصدي ! تقدر تسويها بالجداول لكن تحتاج لسته للدوال + تستخدم مكتبة string مثال الكود ليس كامل ، تقدر تعدل عليه هو فقط للتوضيح List = { "outputChatBox", } scr = { } local text = guiGetText(editBox) for k,v in pairs(List) do if string.find(text,v) then fun = v vars = gettok(text, 2, string.byte('(')) ver = vars:gsub(")", "") scr[fun] = ver end function StartScript() for k ,v in pairs(scr) do k(v) end end Link to comment
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