emin3m1 Posted January 25, 2013 Share Posted January 25, 2013 calcStart = function() for key,calclabel in pairs(calcLabel) do guiSetVisible(calclabel, true) end guiSetVisible(calcEdit, true) guiSetVisible(calcReset, true) guiSetVisible(calcGetResult, true) end removeLetters = function(element) local txt = guiGetText(element) local removed = string.gsub(txt, "[^0-9/*+^-]", "") if removed ~= txt then guiSetText(element, removed) end end calculate = function() local calc = guiGetText(calcEdit) triggerServerEvent("CITphone.calculate", root, calc) end addEvent("CITphone.calculated", true) addEventHandler("CITphone.calculated", localPlayer, function(ans) guiSetText(calcLabel[8], ans) end ) resetCalcEdit = function() guiSetText(calcEdit, "") guiSetText(calcLabel[8], "") end هذا client-side من داخل الجوال بس ابي server-side الله يخليكم.بسرعه وازا في الكلينت سايد شي غلط لاهنتم تصلحوه Link to comment
iPrestege Posted January 25, 2013 Share Posted January 25, 2013 خرابيطط ذا وبعدين مفكوك ذا مايمشي Link to comment
emin3m1 Posted January 25, 2013 Author Share Posted January 25, 2013 وضح الله يخليك والله مهم هاذ Link to comment
iPrestege Posted January 25, 2013 Share Posted January 25, 2013 حط الكود بشكل صحيح ما فهمتك تخبيص ×_× . Link to comment
emin3m1 Posted January 25, 2013 Author Share Posted January 25, 2013 طيب في مجال تربط هذي معه https://community.multitheftauto.com/ind ... ls&id=1218 انو تلغي button calcStart = function() for key,calclabel in pairs(calcLabel) do guiSetVisible(calclabel, true) end guiSetVisible(calcEdit, true) guiSetVisible(calcReset, true) guiSetVisible(calcGetResult, true) end removeLetters = function(element) local txt = guiGetText(element) local removed = string.gsub(txt, "[^0-9/*+^-]", "") if removed ~= txt then guiSetText(element, removed) end end calculate = function() local calc = guiGetText(calcEdit) triggerServerEvent("CITphone.calculate", root, calc) end addEvent("CITphone.calculated", true) addEventHandler("CITphone.calculated", localPlayer, function(ans) guiSetText(calcLabel[8], ans) end ) resetCalcEdit = function() guiSetText(calcEdit, "") guiSetText(calcLabel[8], "") end والله هاذ هو الكود لما انسخه ساعدني ازا تقدر تربطلي هذيك معه وتلغي ال button Link to comment
Bo7meeeD Posted January 25, 2013 Share Posted January 25, 2013 طيب في مجال تربط هذي معه https://community.multitheftauto.com/ind ... ls&id=1218 انو تلغي button calcStart = function() for key,calclabel in pairs(calcLabel) do guiSetVisible(calclabel, true) end guiSetVisible(calcEdit, true) guiSetVisible(calcReset, true) guiSetVisible(calcGetResult, true) end removeLetters = function(element) local txt = guiGetText(element) local removed = string.gsub(txt, "[^0-9/*+^-]", "") if removed ~= txt then guiSetText(element, removed) end end calculate = function() local calc = guiGetText(calcEdit) triggerServerEvent("CITphone.calculate", root, calc) end addEvent("CITphone.calculated", true) addEventHandler("CITphone.calculated", localPlayer, function(ans) guiSetText(calcLabel[8], ans) end ) resetCalcEdit = function() guiSetText(calcEdit, "") guiSetText(calcLabel[8], "") end والله هاذ هو الكود لما انسخه ساعدني ازا تقدر تربطلي هذيك معه وتلغي ال button viewtopic.php?f=119&t=46670 Link to comment
emin3m1 Posted January 25, 2013 Author Share Posted January 25, 2013 calcStart = function() for key,calclabel in pairs(calcLabel) do guiSetVisible(calclabel, true) end guiSetVisible(calcEdit, true) guiSetVisible(calcReset, true) guiSetVisible(calcGetResult, true) end removeLetters = function(element) local txt = guiGetText(element) local removed = string.gsub(txt, "[^0-9/*+^-]", "") if removed ~= txt then guiSetText(element, removed) end end calculate = function() local calc = guiGetText(calcEdit) triggerServerEvent("CITphone.calculate", root, calc) end addEvent("CITphone.calculated", true) addEventHandler("CITphone.calculated", localPlayer, function(ans) guiSetText(calcLabel[8], ans) end ) resetCalcEdit = function() guiSetText(calcEdit, "") guiSetText(calcLabel[8], "") end Link to comment
Bo7meeeD Posted January 25, 2013 Share Posted January 25, 2013 ما فهمت ولا شي منه ! انت وش تبي تسوي بالضبط ؟ Link to comment
hassan.k.s.a Posted January 25, 2013 Share Posted January 25, 2013 لاتقول ضيف ذي وضيف ذيك قول وش تبي تسوي؟ Link to comment
emin3m1 Posted January 25, 2013 Author Share Posted January 25, 2013 يا اخواني انا اقصد الالة الحاسبة هذي بالجوال وما تحسب قلت ابي اعدلها بهذي https://community.multitheftauto.com/ind ... ls&id=1218 والغي button من هذي واركبها بالايفون Link to comment
hassan.k.s.a Posted January 25, 2013 Share Posted January 25, 2013 جيب الجوال والغي الي تبي وخلي الي تبي واشرح الي تبي فيه . Link to comment
emin3m1 Posted January 25, 2013 Author Share Posted January 25, 2013 هذا هوا الايفون وهذي ايقونة الالة الحاسبة انا عندي الحاسبة مثلا مو شغالة مثلا اكتب 8^8 مو شغالة يعني المهم اذا تقدرون تبرمجون وحده بدالها يعني احطها بالايفون او لاهنتم تعدلون على هذي انو بس احطها انا بالايفون https://community.multitheftauto.com/ind ... ls&id=1218 ضغطة تشغيل الايفون هي X 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