Jump to content

abdalaziz

Members
  • Posts

    39
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

750 profile views

abdalaziz's Achievements

Rat

Rat (9/54)

2

Reputation

  1. مرحبا اناا لدي مود كتابة رسائل الكونسوول بتظهر بالشاشة بالفوق لاكن اصدقااي تظهر لديهم الكتاابه بخط كبير والشات يتغطى كيف اعمل خط النص لجميع المقاسات؟ اناا مسوي الكتابة لجميع مقاسات لاكن الخط يأتي كبير جدا عند بعض وصغير عند بعض حل؟
  2. القصة مب كذا ..... في هاك ومودات ملغمة تصير وانا ابي اعرف ايش هي الاوامر عشان اعرف امنعها. وكمان في مشاكل حاليا بسيرفري مالقيت غير هذا الشي اسويه عشان احل المشاكل والنزاعات بين الافراد وعشان الدلائل والبراهين
  3. هذا عشان أضيف أمر انا بدي اسوي onPlayerCommand كل امر يصير يجيني باللوق مع باقي الارقمنتات الي فيه ... ضبطت المود لكن النتيجة بللوق هي فقط الامر دون ارقمنتاته
  4. ايه شيكت , بالويكي مافي ارقمنتات غير بس الكوماند
  5. انا سويت الايفنت "onPlayerCommand" على علمي ان اول ارقمنت هو command = الأمر الي انكتب لكن انا بدي اجيب الارقمنتات الي انكتبت في الامر مثلا انا كتبت الامر pm abdalaziz مرحبا , تعال إلى هنا ابي يجيني الرسالة كاملة . انا سويت المود والنتيجة كانت هي فقط : pm يعني باقي الأمر والارقمنتات الي بالامر ما ظهرت لي ... كيف بقدر أجلب باقي الارقمنتات واعرفها ب string ? المقصد هو انا بقدر اجيب من الايفنت هذا فقط اسم الامر لكن ما بقدر اجيب باقي الارقمنتات الي كتبها اللاعب بالامر كيف بقدر اجيبها؟
  6. وربي انك اسطورة
  7. انا في عندي قيمة سترنق كذا جاية مثلا 56:20:30 وهي عن مود الساعات PlayTime أنا بدي اخذ بس اول رقمين الي هم 56 مثلاً , القيمة بتختلف من كل لاعب حسب ساعاته , انا بدي اخذ بس اول رقمين من اليسار والباقي اشيله واحط الرقمين بمتغير ... كيف الطريقة ؟؟ @KillerX
  8. abdalaziz

    Question

    Thaaaaaaanks! i want to remove it or choose another color when i click on a button , i know all the codes but i don't know how to remove the shader .. how can i remove the shader to make a new one ?
  9. abdalaziz

    Question

    Thanks. but can you tell me the way to code it ? on dxCreateShader , how can i get the filepath ? i want to put a number in edit box and just set the color for the glass , how it ?
  10. abdalaziz

    Question

    i want to change the vehicles's glass color , i searched in wiki ,But I did not find the way or the functions , what the functions that i need it?
  11. x1 مب x أخطأت ..
  12. function loadPathMapFile(filename) local file = fileOpen(filename,true) if not file then outputDebugString("Failed to open path map file: "..filename,2) return end local header_bytes = fileRead(file,12) if #header_bytes ~= 12 then outputDebugString("Failed to read the header of path map file: "..filename,2) fileClose(file) return end local node_ids,conn_ids = {},{} local nodecount,conncount,forbcount = bytesToData("3i",header_bytes) for nodenum = 1,nodecount do local node_bytes = fileRead(file,16) if #node_bytes ~= 16 then outputDebugString("Failed to read all nodes from path map file: "..filename,2) fileClose(file) return end local new_id = #node_z+1 node_ids[nodenum] = new_id local x,y,z,rx,ry = bytesToData("3i2s",node_bytes) node_x[new_id],node_y[new_id],node_z[new_id] = x/1000,y/1000,z/1000 node_rx[new_id],node_ry[new_id] = rx/1000,ry/1000 node_conns[new_id] = {} checkThreadYieldTime() end for connnum = 1,conncount do local conn_bytes = fileRead(file,20) if #conn_bytes ~= 20 then outputDebugString("Failed to read all connections from path map file: "..filename,2) fileClose(file) return end local new_id = #conn_type+1 conn_ids[connnum] = new_id local n1,n2,nb,trtype,lit,speed,ll,rl,density = bytesToData("3i2ubus2ubus",conn_bytes) local lit1,lit2 = lit%4,math.floor(lit/4) n1,n2 = node_ids[n1],node_ids[n2] conn_n1[new_id],conn_n2[new_id] = n1,n2 conn_nb[new_id] = nb ~= -1 and node_ids[nb] or nil conn_type[new_id] = trtype == 1 and "peds" or trtype == 2 and "cars" or trtype == 3 and "boats" or trtype == 4 and "planes" conn_light1[new_id] = lit1 == 1 and "NS" or lit1 == 2 and "WE" or lit1 == 3 and "ped" or nil conn_light2[new_id] = lit2 == 1 and "NS" or lit2 == 2 and "WE" or lit2 == 3 and "ped" or nil conn_maxspeed[new_id] = speed/10 conn_lanes.left[new_id],conn_lanes.right[new_id] = ll,rl conn_density[new_id] = density/1000 conn_forbidden[new_id] = {} if ( rl ~= 0 or ll == 0 ) and n1 and n2 then node_conns[n1][n2] = new_id end if ( ll ~= 0 or rl == 0 ) and n1 and n2 then node_conns[n2][n1] = new_id end -- ')' expected near ' addConnToTrafficMap(new_id) checkThreadYieldTime() end for forbnum = 1,forbcount do local forb_bytes = fileRead(file,8) if #forb_bytes ~= 8 then outputDebugString("Failed to read all forbidden connection sequences from path map file: "..filename,2) fileClose(file) return end local c1,c2 = bytesToData("2i",forb_bytes) conn_forbidden[conn_ids[c1]][conn_ids[c2]] = true checkThreadYieldTime() end fileClose(file) return true end خلاص لقيت المشكلة وحليتها كانت مشكلة سخيفة . شكراً لكن المشكلة هنا هي , انا عندي هذا الكود local n1,n2,nb = conn_n1[connid],conn_n2[connid],conn_nb[connid] local x1,y1 = node_x[n1],node_y[n1] local x2,y2 = node_x[n2],node_y[n2] local density = conn_density[connid] do local lanes = conn_lanes.left[connid]+conn_lanes.right[connid] density = density*(lanes == 0 and 1 or lanes) end local SQUARE_SIZE = SQUARE_SIZE local getDistanceBetweenPoints2D = getDistanceBetweenPoints2D local addConnToSquare = addConnToSquare local math_min,math_max = math.min,math.max local math_floor,math_ceil = math.floor,math.ceil local math_abs,math_huge = math.abs,math.huge if nb then local bx,by = node_x[nb],node_y[nb] local mxx , mxy , myx , myy = x1 - bx , y1 - by , x2 - bx , y2 - by -- attempt to perform arithmetic on local 'x' (a nil value) [string "?"] الخطأ هنا .. ماشوف انا انه في غلط .. ليش ؟؟ وايش الغلط ؟ local mxx , mxy , myx , myy = x1 - bx , y1 - by , x2 - bx , y2 - by -- attempt to perform arithmetic on local 'x' (a nil value) [string "?"] attempt to perform arithmetic on local 'x' (a nil value) [string "?"]
  13. if (ll ~= 0 or rl == 0) and n1 and n2 then node_conns[n2][n1] = new_id end -- ')' expected near ' ')' expected near ' وش الحل وسويتها كذا,نفس الديبق if ( ll ~= 0 or rl == 0 ) and n1 and n2 then -- ')' expected near ' node_conns[n2][n1] = new_id end
×
×
  • Create New...