-
Posts
3,267 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Tete omar
-
اخوي , انا اقولك تقصد القروب الي بملف ال ACL ولا تيم معين ؟ لان ما فيه شي في الام تي اي اسمه قروب غير الي بالاسل
-
القروب هذا يكون في ملف ال ACL مثلاً انت سويت قروب في ملف ال ACL وتبي تتحقق من اذا كان واحد من هالقورب الي يسمى كذا كذا كذا تظهرله النافذة اذا شخص آخر ما كان عنده الصلاحية لفتح النافذة , او مو في القروب الي نبي نتحقق منه بالاسل ما راح تنفتح له النافذة اذا كان قصدك قروب قول او اذا كان قصدك تيم قول
-
ما فيه وظيفة تسمى getPlayerGroup
-
جرب object = createObject ( 980, 2482.7, -1687.8, 15.3 ) marker = createMarker ( 2482.7, -1687.8, 10.3, 'cylinder', 15.5, 0, 0, 0, 0 ) bindKey( 'tab', 'down', function() local team=getPlayerTeam(localPlayer) if(getTeamName(team)=="police")then if(isElementWithinMarker(localPlayer,marker))then if i then moveObject ( object, 1500, 2482.7, -1687.8, 15.3 ) else moveObject ( object, 1500, 2482.7, -1687.8, 18.3 ) end end end i = not i end) نصيحة : افضل شي بالبرمجة انك تخلي كودك اقصر اذا استطعت
-
قول مبتدأ ماعرف اصمم الكود لاتقول مشوآر لاتصير كسول اعتمد على نفسك ولو ب نسبه بسيطه وحنا نساعدك ولا عيني عينك حاط في الكود بشر يعني من تصميمك الله يصلحك بس مصدق نفسك انك مبرمج عالي ماشاء الله نص مشاركاتك اسئلة فياليت لا تتمادى في اسلوبك في التعامل مع الناس لا نفتح القديم ..
-
وش هدف موضوعك يعني ؟
-
المهم تكون متعلم البرمجة + الانجليزي لا تترجم شي خطاء....
-
تبي تجيبهم من اسماءهم ولا من سيريالتهم ولا من حساباتهم ولا من ايبيهاتهم ولا من وين ؟
-
كل الشخصيات الجديدة الي بسيرفرك مسويينها يا بـ 3d max يا ببرنامج آخر
-
انت كنت تبي ناس محددين هم الي يمديهم يدخلوا التيم ؟
-
Thanks , after fixing client function buying() local a=gg(GOLD_lab) local b=gg(SILVER_lab) local c=gg(PLATINUM_lab) local d=gg(IRON_lab) local e=gg(ALUMINIUM_lab) local f=gg(COPPER_lab) local g=gg(PHOSPHATE_lab) local h=gg(LEAD_lab) a_=string.gsub(a,"[^0-9]","") b_=string.gsub(b,"[^0-9]","") c_=string.gsub(c,"[^0-9]","") d_=string.gsub(d,"[^0-9]","") e_=string.gsub(e,"[^0-9]","") f_=string.gsub(f,"[^0-9]","") g_=string.gsub(g,"[^0-9]","") h_=string.gsub(h,"[^0-9]","") local a1=gg(GOLD_am) if(a1~="")and(a1~="0")then local a2=(tonumber(a1))/tonumber(a_) triggerServerEvent("BuyingMetals",resourceRoot,a2) end local b1=gg(SILVER_am) if(b1~="")and(b1~="0")then local b2=(tonumber(b1))/tonumber(b_) triggerServerEvent("BuyingMetals",resourceRoot,b2) end local c1=gg(PLATINUM_am) if(c1~="")and(c1~="0")then local c2=(tonumber(c1))/tonumber(c_) triggerServerEvent("BuyingMetals",resourceRoot,c2) end local d1=gg(IRON_am) if(d1~="")and(d1~="0")then local d2=(tonumber(d1))/tonumber(d_) triggerServerEvent("BuyingMetals",resourceRoot,d2) end local e1=gg(ALUMINIUM_am) if(e1~="")and(e1~="0")then local e2=(tonumber(e1))/tonumber(e_) triggerServerEvent("BuyingMetals",resourceRoot,e2) end local f1=gg(COPPER_am) if(f1~="")and(f1~="0")then local f2=(tonumber(f1))/tonumber(f_) triggerServerEvent("BuyingMetals",resourceRoot,f2) end local g1=gg(PHOSPHATE_am) if(g1~="")and(g1~="0")then local g2=(tonumber(g1))/tonumber(g_) triggerServerEvent("BuyingMetals",resourceRoot,g2) end local h1=gg(LEAD_am) if(h1~="")and(h1~="0")then local h2=(tonumber(h1))/tonumber(h_) triggerServerEvent("BuyingMetals",resourceRoot,h2) end end server addEvent("BuyingMetals",true) addEventHandler("BuyingMetals",root, function( metalprice ) if(getPlayerMoney(client)>=tonumber(metalprice))then takePlayerMoney(client,tonumber(metalprice)) outputChatBox("testing " .. metalprice) end end) the code is fine and no errors but doesn't take the player's money and i only see float values on the chatbox.
-
وش ترتيب حبيبي , الكود كلله يخلي اذكى انسان بالعالم ينتحر .. من وين جبت ذي name وليش جايب كودات السيرفر ووين الليبل حقتك ووين حالك ووينك بالدنيا.
-
resolution ? .. anyway the division result is a float number .. that's why nil or if not , i dunno
-
"_lab" things is about a "gui-label" and "_am" things is about a "gui-edit" I'm actually dividing "_am" things on "_lab" things as you can see here local a2=(tonumber(a1))/tonumber(a_) You may wonder what "a_" and it's defined as a_=string.gsub(a,"[^0-9]","") and you may wonder what is "a" it's defined as a gui-label local a=gg(GOLD_lab) actually i used string.gsub to get the numbers out of the string , because the string is about characters and numbers.
-
Hey guys i got a problem here client function buying() local a=guiGetText(GOLD_lab) local b=guiGetText(SILVER_lab) local c=guiGetText(PLATINUM_lab) local d=guiGetText(IRON_lab) local e=guiGetText(ALUMINIUM_lab) local f=guiGetText(COPPER_lab) local g=guiGetText(PHOSPHATE_lab) local h=guiGetText(LEAD_lab) a_=string.gsub(a,"[^0-9]","") b_=string.gsub(b,"[^0-9]","") c_=string.gsub(c,"[^0-9]","") d_=string.gsub(d,"[^0-9]","") e_=string.gsub(e,"[^0-9]","") f_=string.gsub(f,"[^0-9]","") g_=string.gsub(g,"[^0-9]","") h_=string.gsub(h,"[^0-9]","") local a1=guiGetText(GOLD_am) if not(a1=="")or not(a1=="0")then local a2=(tonumber(a1))/tonumber(a_) -- Attempt to perform arithmetic on a nil value triggerServerEvent("BuyingMetals",resourceRoot,a2) end local b1=guiGetText(SILVER_am) if not(b1=="")or not(b1=="0")then local b2=(tonumber(b1))/tonumber(b_) -- Attempt to perform arithmetic on a nil value triggerServerEvent("BuyingMetals",resourceRoot,b2) end local c1=guiGetText(PLATINUM_am) if not(c1=="")or not(c1=="0")then local c2=(tonumber(c1))/tonumber(c_) -- Attempt to perform arithmetic on a nil value triggerServerEvent("BuyingMetals",resourceRoot,c2) end local d1=guiGetText(IRON_am) if not(d1=="")or not(d1=="0")then local d2=(tonumber(d1))/tonumber(d_) -- Attempt to perform arithmetic on a nil value triggerServerEvent("BuyingMetals",resourceRoot,d2) end local e1=guiGetText(ALUMINIUM_am) if not(e1=="")or not(e1=="0")then local e2=(tonumber(e1))/tonumber(e_) -- Attempt to perform arithmetic on a nil value triggerServerEvent("BuyingMetals",resourceRoot,e2) end local f1=guiGetText(COPPER_am) if not(f1=="")or not(f1=="0")then local f2=(tonumber(f1))/tonumber(f_) -- Attempt to perform arithmetic on a nil value triggerServerEvent("BuyingMetals",resourceRoot,f2) end local g1=guiGetText(PHOSPHATE_am) if not(g1=="")or not(g1=="0")then local g2=(tonumber(g1))/tonumber(g_) -- Attempt to perform arithmetic on a nil value triggerServerEvent("BuyingMetals",resourceRoot,g2) end local h1=guiGetText(LEAD_am) if not(h1=="")or not(h1=="0")then local h2=(tonumber(h1))/tonumber(h_) -- Attempt to perform arithmetic on a nil value triggerServerEvent("BuyingMetals",resourceRoot,h2) end end server addEvent("BuyingMetals",true) addEventHandler("BuyingMetals",root, function( metalprice ) if(getPlayerMoney(client)>=tonumber(metalprice))then takePlayerMoney(client,tonumber(metalprice)) outputChatBox("enougnmoney " .. metalprice) else outputChatBox("enougnmoney " .. metalprice) end end) My whole problem is about " Attempt to perform arithmetic on a nil value "
-
مشكلة gta_sa.exe crash stop working ntdll.dll
Tete omar replied to Quited's topic in Arabic / العربية
I guess it's because of his game version is bad or pirated , or something like that ... , i dunno. -
يا ليت تفكر قبل ما ترد Mohssan بالنسبة لك يا أولاً اللعبة مهي جرافكس عالي مثل ما انت شايف لو تقصد تسوي object باستخدام برنامج فالافضل تستخدم 3D's max ثانياً اذا كنت تبي تركب ملفات ال txd و dff استخدم https://wiki.multitheftauto.com/wiki/Cli ... _functions Engine functions هذي شاملة كل الوظايف التي تشمل ملفات ال txd و dff
-
وش دخل blip هو يبي شنطة في ظهر الأعب .. مدري عنه ض1
-
هــــــــــام جــدا :مناقشة هامة للجميع أرجو من الكل الدخول
Tete omar replied to MR.S3D's topic in Arabic / العربية
مع ان الرد خارج الموضوع , بس اتفق معك في الرآي ... -
نسيت تحط hitElement في متطلبات الفنكشن تم التعديل
-
ادري انك تبي تقلد حرب العصابات ... بس كودك كلللله ما له معنى اطلاقاً !! يمديك تستخدم local m=createMarker(370.0751953125, 173.60697937012, 1008.3828125, "cylinder", 1.5, 0, 0, 0, 0) local blip=createBlipAttachedTo(m, 3) addEventHandler("onMarkerHit",m, function(hitElement) if(hitElement and getElementType(hitElement)=="player")then if(blip~=false)then attachElements(blip,hitElement) end end end) انا ما جربته , بس ان شاء الله يشتغل ..
-
هــــــــــام جــدا :مناقشة هامة للجميع أرجو من الكل الدخول
Tete omar replied to MR.S3D's topic in Arabic / العربية
شباب ترا العقرب قاعد يمزح وانا امزح ض2 -
شوب شوب شوب رح السوبر ماركت , هذا هو الشوب خخ امزح المهم , استخدم guiEditSetMaxLength -- لاقامة حد لعدد الاحرف في الايديت guiGetText اكيد راح تسوي gui-edit فانت راح تجيب وش داخل الاديت وتضربه في سعر السلاح , يجيك العدد المحدد صعب هذا ؟
-
هــــــــــام جــدا :مناقشة هامة للجميع أرجو من الكل الدخول
Tete omar replied to MR.S3D's topic in Arabic / العربية
هه , نص العرب ما يعرفون غير شوب , وتحميل المودات واخذ اكوادها عشان يحطه بكوده بعد ما انتشر البيسمود وانشهر وكل واحد خلا سيرفره بيسمود , الكـــل احب البيسمود والكــل يبي يسوي سيرفر بيسمود ومع ذلك الهجوله نفس المشوار .... بعد ما ظهر حرب العصابات الي الفت نظر الكثير والكثير , اسال اي عربي في اي سيرفر قوله وش تبيني ابرمجلك يقولك ابي مودات حرب العصابات الافكار المختلفة دايماً تكون ناجحة ....