Prova501 Posted July 19, 2013 Share Posted July 19, 2013 السلام عليكم ., و رحمة الله و بركآته شباب انا عندي memo أبي أعدل الكلام الي فيها من الادمنية + قولو لي وش أستخدم .,. Link to comment
فاّرس Posted July 19, 2013 Share Posted July 19, 2013 يوم رديت عليك ما شفت كلمه ادمنيه اصلا المهم انطرح الموضوع لو تدور كان لقيت ذذ, تقدر تخليه يعدل من الأدمنيه وهادي ابسط واسهل الطرق get("weapon") in meta.xml "*weapon" value="القيمة الافتراضية" desc="الوصف"/> Example if getPlayerTeam ( player ) ~= getTeamFromName ( get("teamName") ) then -- سطر توضيحي "*teamName" value="police" desc="this just for example"/> Link to comment
Prova501 Posted July 19, 2013 Author Share Posted July 19, 2013 شباب get تستخدم باالسيرفر مو بالكنت كيف أوصل الي Memo بالسيرفر Link to comment
iPrestege Posted July 19, 2013 Share Posted July 19, 2013 onClientResourceStart triggerServerEvent triggerClientEvent وسوي متغيرات Link to comment
3NAD Posted July 19, 2013 Share Posted July 19, 2013 فيه طريقة اللي هي triggerClientEvent او الأسهل setElementData مثآل -- Server Side addEventHandler ( "onSettingChange", resourceRoot, function ( setting, old, new ) triggerClientEvent ( root, "onSettingChanged", root, setting, new ) end ) -- Client Side addEvent ( "onSettingChanged", true ) addEventHandler ( "onSettingChanged", root, function ( setting, value ) guiSetText ( memo, "Setting Name: "..setting.."\nNew Value: "..value ) end ) مثال 2 -- Server Side addEventHandler ( "onSettingChange", resourceRoot, function ( setting, old, new ) setElementData ( resourceRoot, setting, new ) end ) -- Client Side setTimer ( function ( ) guiSetText ( memo, getElementData ( resourceRoot, setting ) or "n/a" ) end , 2000, 0 ) الأمثلة غير مجربة Link to comment
Prova501 Posted July 19, 2013 Author Share Posted July 19, 2013 اخوي استخدمت أول مثآل و ضبط معي بس بالميمو يجي كذا [" الي اكتبه من الأدمنيه "] addEvent ( "onSettingChanged", true ) addEventHandler ( "onSettingChanged", root, function ( setting, value ) guiSetText ( ALSHBH.memo[3],value) end ) Link to comment
Prova501 Posted July 19, 2013 Author Share Posted July 19, 2013 المثآل الثآني يطلع كذا 'setElementData'[Expected String at argument 2,got nil] Link to comment
AhmeD~9MoD Posted July 19, 2013 Share Posted July 19, 2013 هذا مثال يعني تتعلم منه مو تاخذه Link to comment
3NAD Posted July 19, 2013 Share Posted July 19, 2013 المثآل الثآني يطلع كذا 'setElementData'[Expected String at argument 2,got nil] باسم الداتا Setting لأنه غير معرف بدل 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