Leaderboard
Popular Content
Showing content with the highest reputation on 03/02/17 in Posts
-
aEditBox_ = aTest addEventHandler('onClientGUIChanged', resourceRoot , function ( ) if ( source == aEditBox_ ) then local aText_ = guiGetText( aEditBox_ ) aEditText = tonumber( aText_ ) if ( aEditText ) then aEditText = math.ceil(aText_) if ( aEditText > 0 ) then guiSetText( aEditBox_ , aEditText ) else guiSetText( aEditBox_ , '0' ) end else guiSetText(aEditBox_ , '0' ) end end end ) بدل السطر الاول كلمة aTest بالاديت بوكس انا ادري انه تم الافاده بس حبيت اشارك ض13 points
-
2 points
-
2 points
-
2 points
-
تسلم اللعبه مطنوخه كنت العبها زماان ايام 2011 تقريبا, وبطلت منها والحين عدلوها وضبطوها, بس مشكلتها يبغى لها شحن عشان الكريستال وتطوير الاسلحه والدبابات...2 points
-
2 points
-
2 points
-
^ اعتقد مايبغى يسوي فريز, يبغاه يدخل الماركر وينقله مكان محدد واذا رجع يدخل الماركر يقول له باقي ساعه و سويت لك الكود بطريقتي, ماجربت الكود, مع الشرح : local marker = createMarker ( ... ) -- ماركر warpFunc = function () -- warpFunc نسوي وظيفة بإسم tcount = getTickCount () + 3600000 -- نحط المتغير للوظيفه ونزود ساعه بالميليسيكوند setElementPosition ( localPlayer, x,y,z ) -- ننقل اللاعب لمكان محدد end -- نقفل الوظيفه -- طبعا الوظيفة الحين مالها اي فايده الا اذا سويت لها استدعاء وبنسوي لها تحت addEventHandler ( 'onClientMarkerHit', marker, function ( p ) -- حدث اذا دخل اللاعب للماركر مع بارمتر يجلب لنا اللاعب نفسه if p == localPlayer then -- نتحقق ان اللي دخل الماركر هو نفسه اللوكل بلاير if not var then -- هنا نتحقق ان المتغير غير موجود وهو فعلا غير موجود warpFunc(); -- هنا نستدعي الوظيفه اللي فوق وراح تتنفذ الاكواد اللي بداخلها var = true; -- هنا نسوي المتغير ونحط له قيمة منطقية -- يعني هالشرط ماراح يتحقق مره ثانيه ليه؟ لأننا تحققنا ان المتغير غير موجود وبالنهاية سوينا متغير يعني خلاص صار موجود else -- عكس الشرط, بمعنى لو كان المتغير موجود if math.abs ( math.floor ( ( ( getTickCount() - tcount ) / 3600000 ) ) ) == 0 then -- نسوي تحقق ان الوقت وصل صفر يعني خلصت الساعه tcount = nil; -- هنا نخلي قيمة المتغير حق الوقت نيل, نيل يعني كأنك تحذف المتغير warpFunc(); -- نستدعي الوظيفة ^^ else -- اذا كان الوقت ماوصل صفر يعني ماخلصت الساعه outputChatBox ( 'دقيقة ( '.. math.abs ( math.floor ( ( getTickCount() - tcount ) / 60000 ) ) .. ' ) : تبقى' ) -- نطلع نص بالشات وفيه الوقت الباقي على الساعه end -- نقفل الشرط end -- نقفل الشرط end -- نقفل الشرط end) -- نقفل الوظيفه وقوس الحدث بدون الشرح : local marker = createMarker ( ... ) warpFunc = function () tcount = getTickCount () + 3600000 setElementPosition ( localPlayer, x,y,z ) end addEventHandler ( 'onClientMarkerHit', marker, function ( p ) if p == localPlayer then if not var then warpFunc(); var = true; else if math.abs ( math.floor ( ( ( getTickCount() - tcount ) / 3600000 ) ) ) == 0 then tcount = nil; warpFunc(); else outputChatBox ( 'دقيقة ( '.. math.abs ( math.floor ( ( getTickCount() - tcount ) / 60000 ) ) .. ' ) : تبقى' ) end end end end) * سطر 1 وسطر 5 اللي عليك تعدل الاحداثيات ووظيفة الماركر.2 points
-
@N3xT تفضل شوف المثال هذا خش الموقع https://www.lua.org/cgi-bin/demo وحط ذا الكود t = "a50" print ( tonumber ( t ) ) nil راح يطلع لك اما لو تحط t = "50" print ( tonumber ( t ) ) راح يطلع لك 50 guiGetText وبعدين فنشكن راح يرجع لك بسترنق , ماراح يضبط انك تتحقق من التايب حقه لازم تحول السترنق لنمبر2 points
-
Tries to convert its argument to a number. If the argument is already a number or a string convertible to a number, then tonumber returns this number; otherwise, it returns nil. tonumber : يحول السترنق إلى رقم لذلك الفنكشن الصح type if ( type ( tonumber(guiGetText (edit) ) ) ~= "number" ) then return end2 points
-
Line 18: outputChatBox("Spēlētājs " ..getPlayerName(targetPlayer).." ir saņēmis brīdinājumu par "..reason..".", source, 255,0, 0)2 points
-
اذا دخل الماركر ينقله لمكان : "onPlayerMarkerHit" setElementPosition بخصوص الوقت عندك اكثر من طريقه, فيه طريقة بالتايمر وتحط متغير وتنقصه و... وتقدر تبحث عنها بالقسم فيه لها شروحات getTickCount وفيه طريقة سهله من خلال الوظيفة بالتوفيق .2 points
-
Hello Ladies Today i wanna suggest to add favorites list into Map Editor Object choose! as its hard to remember all needed objects Ids and be able to add object to that list when its needed or at least use Most used objects list to save time as many times when you find object you like for first time you dont keep its ID when you start other map! so i believe its needed for the mapping community or at least to help make mapping much easyer! Vote +1 if you like this suggestion! and cya1 point
-
math.floor لازالة العدد العشري math.ceil دي لتقريب الى اكبر عدد صحيح1 point
-
مشكور كركر وماستر وسوكينق وكل الشباب اللي حاولو يساعدوني بس انا افضل حقت كركر لأنها أسهل ... ما تبيلها اكواد طويله Thanks a lot @Abdul KariM @Master_MTA @#Soking @N3xT1 point
-
1 point
-
1 point
-
1 point
-
-- Client Side function Check ( ) if ( getElementData ( localPlayer , 'Hours' ) == 1 ) then outputChatBox ( 'Hi ض1' ) triggerServerEvent ( 'Trigger:SetMe' , localPlayer ) end end ) setTimer ( function ( ) local Hours , Minutes , Seconds = ( getElementData ( localPlayer , 'Hours' ) or 0 ) , ( getElementData ( localPlayer , 'Minutes' ) or 0 ) , ( getElementData ( localPlayer , 'Seconds' ) or 0 ) if ( Seconds < 60 ) then setElementData ( localPlayer , 'Seconds' , Seconds + 1 ) else setElementData ( localPlayer , 'Minutes' , Minutes + 1 ) setElementData ( localPlayer , 'Seconds' , 0 ) end if ( Minutes == 60 ) then setElementData ( localPlayer , 'Hours' , Hours + 1 ) Check ( ) setElementData ( localPlayer , 'Minutes' , 0 ) end end , 1000 , 0 ) -- Server Side addEvent ( 'Trigger:SetMe' , true ) addEventHandler ( 'Trigger:SetMe' , getRootElement ( ) , function ( ) -- Your a Code end ) كمل انت ض11 point
-
1 point
-
بالظبط, هذا اللي سويته مشكور يا ماستر وما قصرت انت والشباب <31 point
-
1 point
-
1 point
-
1 point
-
تفي بالغرض بشكل كامل tonumber ماشوف انه يحولها و1 point
-
1 point
-
1 point
-
طيب مثل ما قلت لك الفائدة من تونمبر ( تحويل السترنق إلى رقم ) وبخصوص التايب ما انتبهت لكلامه بالموقع ، عالعموم عُدل1 point
-
اللي يبي يستفيد local getEdit = guiGetText(setEdit) --- نسوي اختصار جلب الكلام من الايدت if tonumber(getEdit) then ---- اذا ارقام فقط if not tonumber(getEdit) then return end ---- لو تبي تسوي اذا ماهي ارقام يجيه فـ الشات كلام او شئ زي كذا ,,, بكيفك.1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
اها يعطيك العافيه وواصل بدون فواصل يا غالي ماشاء الله تبارك الله فنان +_+1 point
-
Try exports.scoreboard:scoreboardResetColumns("") and exports.scoreboard:addScoreboardColumn("") Edit : Sorry didn't notice you solved it1 point
-
Guess I went into the wrong game mode field then cause I thought Storymode was going to get a chance.1 point
-
1 point
-
رائع اخوي بس لو تنتبه لهاذي givePlayeLikes ( player thePlayer , int Likes ) بالظبط هنا PlayeL1 point
-
1 point
-
1 point
-
Looks absolutely awesome. I think the animations could be a little faster. It'd just make it seem a little more intuitive and more friendly.1 point
-
1 point
-
1 point
-
*falls asleep while waiting for the login panel to fill in information to pop up* Jokes aside, looks quite amazing.1 point
-
1 point
-
I have created a Compatibility FAQ on the wiki based on this topic.1 point
-
Numerical looping is 2 times faster than pairs, while pairs is slightly faster than ipairs.1 point
-
1 point
-
You will be unbanned automatically once your ban period passes. An early unban? No, at least not any time soon. You did what you've done so don't be surprised that you're taking responsibility for it.1 point
