a7zan Posted December 19, 2015 Share Posted December 19, 2015 (edited) السلام عليكم ورحمة الله وبركاته صممت لوحة معلومات الاعب تمام ؟ المشكلة إن لما ابي اجيب إسم حساب الاعب ، الفنكشن سيرفر # وجربت اسوي ترايقر بس ماضبط يقول لي الخطاء هنا -- Client # function () -- هنا يقول لي خطاء ! triggerServerEvent("accc", getLocalPlayer() end end ) -- Server # addEvent("accc" , true ) addEventHandler("accc", root, function () local accc = getAccountName(theAccount) end ) والدي بوق يقول ERROR: Loading script failed: SSS\ClienT.lua:21:'' expected near '(' Edited December 21, 2015 by Guest Link to comment
ALw7sH Posted December 19, 2015 Share Posted December 19, 2015 فنكشن الكلاينت ماله اسم + فيه قوس زايد بالنهايه Link to comment
a7zan Posted December 19, 2015 Author Share Posted December 19, 2015 -- Server # addEvent("accc" , true ) addEventHandler("accc", root, function () local accc = getAccountName(theAccount) end ) -- Client # function acc() triggerServerEvent("accc", getLocalPlayer()) end الدي بوق ERROR: SsS\ClienT.lua:12: attempt to concatenate global 'accc' (a nill value) سطر 12 dxDrawText("Your Name Account : " .. accc, 402, 450, 1012, 493, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "left", "top", false, false, false, false, false) Link to comment
Rockyz Posted December 19, 2015 Share Posted December 19, 2015 (edited) -- Server # addEventHandler("onPlayerLogin", root, function (_,acc) if (acc) then setElementData (source, "AccName", getAccountName (acc)) end end ) -- Client # dxDrawText("Your Name Account : " ..(getElementData (localPlayer, "AccName") or "N/A"), 402, 450, 1012, 493, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "left", "top", false, false, false, false, false) Edited December 19, 2015 by Guest Link to comment
a7zan Posted December 19, 2015 Author Share Posted December 19, 2015 إشكرك # إريد فنكشن يظهر إيبي الاعب Link to comment
Rockyz Posted December 19, 2015 Share Posted December 19, 2015 تقدر تسوي نفس الطريقة الي فوق اذا دخل الاعب تجيب الايبي ماله وتخلي عليه داتا باستعمال getPlayerIP Link to comment
a7zan Posted December 19, 2015 Author Share Posted December 19, 2015 -- Server # addEventHandler("onResourceStart", root, function (_,ip) if (ip) then setElementData (source, "ip", getPlayerIP (ip)) end end ) + مايجي الآيبي حقي # ممكن تقول وش المشكلة ؟ Link to comment
Rockyz Posted December 19, 2015 Share Posted December 19, 2015 المشكلة هي ارقمنتات زائدة جرب هذا -- Server # addEventHandler("onResourceStart", root, function () for k, v in ipairs (getElementsByType ("player")) do local ipp = getPlayerIP (v) if (ipp) then setElementData (v, "ip", ipp) end end end ) Link to comment
a7zan Posted December 19, 2015 Author Share Posted December 19, 2015 (edited) addEventHandler("onResourceStart", root, function () for k, v in ipairs (getElementsByType ("player")) do local ipp = getPlayerIP (v) if (ipp) then setElementData (v, "ip", ipp) end end end ) كان ناقص قوس شكراً # Edited December 19, 2015 by Guest Link to comment
Abdul KariM Posted December 19, 2015 Share Posted December 19, 2015 ^ قوس ناقص addEventHandler("onResourceStart", root, function ( ) for k, v in ipairs ( getElementsByType ( "player" ) ) do local ipp = getPlayerIP ( v ) if ( ipp ) then setElementData ( v , "ip", ipp ) end end end ); Link to comment
Rockyz Posted December 19, 2015 Share Posted December 19, 2015 ^قوس ناقص addEventHandler("onResourceStart", root, function ( ) for k, v in ipairs ( getElementsByType ( "player" ) ) do local ipp = getPlayerIP ( v ) if ( ipp ) then setElementData ( v , "ip", ipp ) end end end ); وش سويت غير انك حطيت مسافات ؟ Link to comment
a7zan Posted December 19, 2015 Author Share Posted December 19, 2015 ذذ بسطر 10 ليه حطيت ; ؟ Link to comment
Rockyz Posted December 19, 2015 Share Posted December 19, 2015 هذي ماتفرق حطيتها ولا لا Link to comment
Abdul KariM Posted December 19, 2015 Share Posted December 19, 2015 ^قوس ناقص addEventHandler("onResourceStart", root, function ( ) for k, v in ipairs ( getElementsByType ( "player" ) ) do local ipp = getPlayerIP ( v ) if ( ipp ) then setElementData ( v , "ip", ipp ) end end end ); وش سويت غير انك حطيت مسافات ؟ حط كوده وقلت له عندك قوس ناقص وعطيته الكود بعد ماحطيت القوس وين المشكلة ؟ Link to comment
a7zan Posted December 19, 2015 Author Share Posted December 19, 2015 عـالعموم مشكورين جميعاً في كود يعمل الشاشة مشوشة ؟ مع مثال # Link to comment
a7zan Posted December 19, 2015 Author Share Posted December 19, 2015 مم جربت مثال الي بالويكي بس ماصار شيء # Link to comment
iPrestege Posted December 19, 2015 Share Posted December 19, 2015 تاكد انك حطيت القيمة في الكوماند ولا ماينفع اصلاً اذا ماحددتها . Link to comment
a7zan Posted December 19, 2015 Author Share Posted December 19, 2015 حاط بالكومند 190 ويجي لي بشات # Blur level set to: 190 وماصار شيء # Link to comment
a7zan Posted December 19, 2015 Author Share Posted December 19, 2015 مسويه بملف سيرفر ._. .,. جرب انت شوفه يضبط ؟ Link to comment
Rockyz Posted December 19, 2015 Share Posted December 19, 2015 addCommandHandler("blur", function ( plr, cmd, level ) blur = tonumber(level) if not ( blur or blur > 255 or blur < 0 ) then outputChatBox ( "Enter a value between 0 - 255.", plr, 255, 255, 255, true ) else setPlayerBlurLevel ( plr, blur ) outputChatBox ( "Blur level set to: " .. blur, plr, 255, 0, 0, true ) end end Link to comment
a7zan Posted December 19, 2015 Author Share Posted December 19, 2015 ناقص قوس ^ + blur 255 اكتب يجي بشات Blur level set to: 255 بس مايصير شيء Link to comment
ALw7sH Posted December 19, 2015 Share Posted December 19, 2015 setPlayerBlurLevel مايخلي الشاشة مشوشة على طول يخليها مشوشة اذا اسرعت فقط اذا تبي تسوي الشاشة مشوشة لازم تسوي شادر Link to comment
a7zan Posted December 19, 2015 Author Share Posted December 19, 2015 لول ذا ما يخليها مشوشة لما اسرع تهتز الشاشة باللعبة مشكورين # 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