RLP[Farouk] Posted October 8, 2012 Posted October 8, 2012 السلام عليكم يا جماعه حد يشوفلي المشكلة انا حملت legalsystem وجربته من لوحة الادمن حطيت سكن الشرطة وسجنت واحد كل شي تمام وانا عملت gui وماركر بس لما احول الشرطي من الماركر وامسك واحد مش نافع!! صدقوني صارلي شهر والله!!!!! حد يعرف المشكلة من ده legalsystem
RLP[Farouk] Posted October 8, 2012 Author Posted October 8, 2012 طيب ....... انا نزلت legalsystem وشغلته على سيرفري وقلت بدي اجرب فتحت لوحة الادمن حطيت سكن الشرطة والمضرب ومسكت شخص وسجنته يعني شغال ... طيب بعدين انا سويت ماركر و gui عشان احول شرطي منه, انا حولت وجربت امسك المخالفين مش زابط !!!!! الا من لوحة الادمن بزبط, تعرف وش الحل؟؟؟
RLP[Farouk] Posted October 8, 2012 Author Posted October 8, 2012 لما احول شرطي من الماركر ما في اخطأ بس المشكلة ما يمسك!!!!!!! الا لما احول من لوحة الادمن كلنت local marker = createMarker( 1552.8688964844, -1677.6, 15.2, "Cylinder", 1.5, 14, 64, 237, 150) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image= {} function guiMyCwindow(w,h,t) local x,y = guiGetScreenSize() return guiCreateWindow(181,174,465,284,"Police Job",false) end windowjob = guiMyCwindow(301,250,"Police") guiWindowSetMovable(windowjob,false) guiWindowSetSizable(windowjob,false) guiSetVisible(windowjob, false) GUIEditor_Button[1] = guiCreateButton(118,235,95,30,"282",false,windowjob) GUIEditor_Label[1] = guiCreateLabel(193,-103,5,5,"",false,windowjob) GUIEditor_Button[2] = guiCreateButton(225,188,215,32,"Cancel",false,windowjob) GUIEditor_Memo[1] = guiCreateMemo(217,33,232,147,"If you want to join a Police job\nChoose a skin by clicking button\nor don't want be a cop? press\ncancel button.\n\n If you see a robber have stars\nhit him by using nightstick to arrest him! and take him to\nany blue icon in the radar to jail him.\n",false,windowjob) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Image[1] = guiCreateStaticImage(34,42,154,175,"images/Police.png",false,windowjob) GUIEditor_Button[3] = guiCreateButton(225,234,100,32,"283",false,windowjob) GUIEditor_Label[2] = guiCreateLabel(31,241,74,20,"Choose skin:",false,windowjob) GUIEditor_Button[4] = guiCreateButton(336,234,102,32,"284",false,windowjob) function Policejob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", marker, Policejob) function Policejobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker, Policejobleave) function joinTeam() triggerServerEvent("setPolice",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[1] , joinTeam, false) function joinTeam() triggerServerEvent("set1Police",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[3] , joinTeam, false) function joinTeam() triggerServerEvent("set2Police",localPlayer) guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[4] , joinTeam, false) function removePoliceWindow() guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removePoliceWindow, false) سيرفر FaroukMarker = createMarker (1552.8688964844, -1676.6685791016, 15.1, "cylinder", 1, 1, 0, 0, 1) createBlipAttachedTo(FaroukMarker,56,2,0,255,0,0,0,300) function createPoliceTeam () Policeteam = createTeam ("Police", 17, 64, 237) end addEventHandler ("onResourceStart", resourceRoot, createPoliceTeam) function joinPolice() setPlayerTeam(source,Policeteam) giveWeapon ( source, 3 ) setTeamColor ( Policeteam, 17, 64, 237) r, g, b = getTeamColor ( Policeteam ) setElementModel(source, 281) setElementData( source, "Occupation", "Police", true ) outputChatBox("You joined Police team.",source,17,64,237) end addEvent("setPolice", true) addEventHandler("setPolice",root,joinPolice) function join1Police() setPlayerTeam(source,Policeteam) giveWeapon ( source, 3 ) setTeamColor ( Policeteam, 17, 64, 237) r, g, b = getTeamColor ( Policeteam ) setElementModel(source, 282) setElementData( source, "Occupation", "Police", true ) outputChatBox("You joined Police team.",source,17,64,237) end addEvent("set1Police", true) addEventHandler("set1Police",root,join1Police) function join2Police() setPlayerTeam(source,Policeteam) giveWeapon ( source, 3 ) setTeamColor ( Policeteam, 17, 64, 237) r, g, b = getTeamColor ( Policeteam ) setElementModel(source, 283) setElementData( source, "Occupation", "Police", true ) outputChatBox("You joined Police team.",source,17,64,237) end addEvent("set2Police", true) addEventHandler("set2Police",root,join2Police)
abu5lf Posted October 8, 2012 Posted October 8, 2012 addEventHandler ( 'onClientGUIClick' guiRoot, function ( ) if ( source == GUIEditor_Button[1] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[1] ) ) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[3] ) ) elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[4] ) ) end end ) addEventHandler ("onResourceStart", resourceRoot, function () FaroukMarker = createMarker (1552.8688964844, -1676.6685791016, 15.1, "cylinder", 1, 1, 0, 0, 1) createBlipAttachedTo(FaroukMarker,56,2,0,255,0,0,0,300) createTeam ("Police", 17, 64, 237) end ) addEvent("setPolice", true) addEventHandler("setPolice",root,joinPolice) function joinPolice( id ) setPlayerTeam ( source, getTeamFromName ( 'Police' )) giveWeapon ( source, 3 ) setElementModel(source, id) setElementData( source, "Occupation", "Police", true ) outputChatBox("You joined Police team.",source,17,64,237) end جرب يمقن الكود خطأ
abu5lf Posted October 8, 2012 Posted October 8, 2012 الماركر اختفىاووووووووووووووف جربت الكود كامل ؟ local marker = createMarker( 1552.8688964844, -1677.6, 15.2, "Cylinder", 1.5, 14, 64, 237, 150) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image= {} function guiMyCwindow(w,h,t) local x,y = guiGetScreenSize() return guiCreateWindow(181,174,465,284,"Police Job",false) end windowjob = guiMyCwindow(301,250,"Police") guiWindowSetMovable(windowjob,false) guiWindowSetSizable(windowjob,false) guiSetVisible(windowjob, false) GUIEditor_Button[1] = guiCreateButton(118,235,95,30,"282",false,windowjob) GUIEditor_Label[1] = guiCreateLabel(193,-103,5,5,"",false,windowjob) GUIEditor_Button[2] = guiCreateButton(225,188,215,32,"Cancel",false,windowjob) GUIEditor_Memo[1] = guiCreateMemo(217,33,232,147,"If you want to join a Police job\nChoose a skin by clicking button\nor don't want be a cop? press\ncancel button.\n\n If you see a robber have stars\nhit him by using nightstick to arrest him! and take him to\nany blue icon in the radar to jail him.\n",false,windowjob) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Image[1] = guiCreateStaticImage(34,42,154,175,"images/Police.png",false,windowjob) GUIEditor_Button[3] = guiCreateButton(225,234,100,32,"283",false,windowjob) GUIEditor_Label[2] = guiCreateLabel(31,241,74,20,"Choose skin:",false,windowjob) GUIEditor_Button[4] = guiCreateButton(336,234,102,32,"284",false,windowjob) function Policejob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", marker, Policejob) function Policejobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker, Policejobleave) function removePoliceWindow() guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removePoliceWindow, false) addEventHandler ( 'onClientGUIClick' guiRoot, function ( ) if ( source == GUIEditor_Button[1] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[1] ) ) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[3] ) ) elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[4] ) ) end end )
RLP[Farouk] Posted October 8, 2012 Author Posted October 8, 2012 يب مختفي وطلعلي ايرور WARNING: Loading script failed: 1policejob\client.lua:68: ')' expected (to close '(' at line 67) near 'guiRoot'
abu5lf Posted October 8, 2012 Posted October 8, 2012 (edited) يب مختفي وطلعلي ايرورWARNING: Loading script failed: 1policejob\client.lua:68: ')' expected (to close '(' at line 67) near 'guiRoot' جرب local guiRoot = getResourceGUIElement ( getThisResource () ) local marker = createMarker( 1552.8688964844, -1677.6, 15.2, "Cylinder", 1.5, 14, 64, 237, 150) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image= {} function guiMyCwindow(w,h,t) local x,y = guiGetScreenSize() return guiCreateWindow(181,174,465,284,"Police Job",false) end windowjob = guiMyCwindow(301,250,"Police") guiWindowSetMovable(windowjob,false) guiWindowSetSizable(windowjob,false) guiSetVisible(windowjob, false) GUIEditor_Button[1] = guiCreateButton(118,235,95,30,"282",false,windowjob) GUIEditor_Label[1] = guiCreateLabel(193,-103,5,5,"",false,windowjob) GUIEditor_Button[2] = guiCreateButton(225,188,215,32,"Cancel",false,windowjob) GUIEditor_Memo[1] = guiCreateMemo(217,33,232,147,"If you want to join a Police job\nChoose a skin by clicking button\nor don't want be a cop? press\ncancel button.\n\n If you see a robber have stars\nhit him by using nightstick to arrest him! and take him to\nany blue icon in the radar to jail him.\n",false,windowjob) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Image[1] = guiCreateStaticImage(34,42,154,175,"images/Police.png",false,windowjob) GUIEditor_Button[3] = guiCreateButton(225,234,100,32,"283",false,windowjob) GUIEditor_Label[2] = guiCreateLabel(31,241,74,20,"Choose skin:",false,windowjob) GUIEditor_Button[4] = guiCreateButton(336,234,102,32,"284",false,windowjob) function Policejob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(windowjob) then guiSetVisible(windowjob, true) showCursor(true) end end end addEventHandler("onClientMarkerHit", marker, Policejob) function Policejobleave(leaveElement) if getElementType(leaveElement) == "player" and (leaveElement == localPlayer) then if guiGetVisible(windowjob) then guiSetVisible(windowjob, false) showCursor(false) end end end addEventHandler("onClientMarkerLeave", marker, Policejobleave) function removePoliceWindow() guiSetVisible(windowjob, false) showCursor(false) end addEventHandler("onClientGUIClick", GUIEditor_Button[2] , removePoliceWindow, false) addEventHandler ( 'onClientGUIClick', guiRoot, function ( ) if ( source == GUIEditor_Button[1] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[1] ) ) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[3] ) ) elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent ( 'setPolice', localPlayer, guiGetText ( GUIEditor_Button[4] ) ) end end ) Edited October 8, 2012 by Guest
RLP[Farouk] Posted October 8, 2012 Author Posted October 8, 2012 ما نحلت WARNING: Loading script failed: 1policejob\client.lua:69: ')' expected (to close '(' at line 68) near 'guiRoot' انت بتخبص بالكود
abu5lf Posted October 8, 2012 Posted October 8, 2012 ما نحلتWARNING: Loading script failed: 1policejob\client.lua:69: ')' expected (to close '(' at line 68) near 'guiRoot' انت بتخبص بالكود وش تسوي انا مبتدئ انسخ كودي الي فوق مرة ثانية
RLP[Farouk] Posted October 8, 2012 Author Posted October 8, 2012 ما نحلتWARNING: Loading script failed: 1policejob\client.lua:69: ')' expected (to close '(' at line 68) near 'guiRoot' انت بتخبص بالكود وش تسوي انا مبتدئ انسخ كودي الي فوق مرة ثانية نفس الايرور! اعتقد ان المشكلة ما راح تنحل
abu5lf Posted October 8, 2012 Posted October 8, 2012 ما نحلتWARNING: Loading script failed: 1policejob\client.lua:69: ')' expected (to close '(' at line 68) near 'guiRoot' انت بتخبص بالكود وش تسوي انا مبتدئ انسخ كودي الي فوق مرة ثانية نفس الايرور! اعتقد ان المشكلة ما راح تنحل ههههههههه انا ناسي فاصلة شف انسخه مرة ثانية لو ماصلح ابسحب على الموضوع
RLP[Farouk] Posted October 8, 2012 Author Posted October 8, 2012 طيب برضو المخالف لما امسكه ما ينمسك شو الحللللللللللللللللللللل ما عندك مود كاملللللللللللللللللللللللللل وخلصصصص والله تعبت
abu5lf Posted October 8, 2012 Posted October 8, 2012 طيببرضو المخالف لما امسكه ما ينمسك شو الحللللللللللللللللللللل ما عندك مود كاملللللللللللللللللللللللللل وخلصصصص والله تعبت اظن الي تمسكه لازم يكون عنده نجوم
TAPL Posted October 8, 2012 Posted October 8, 2012 جرب تحط ذا الكود setElementParent(source, getElementByID("cops")) تحت كود التيم setPlayerTeam
RLP[Farouk] Posted October 8, 2012 Author Posted October 8, 2012 (edited) جرب تحط ذا الكود setElementParent(source, getElementByID("cops")) تحت كود التيم setPlayerTeam مشكووووووووووووووووووووووووووور مشكووووووووووووووووووووووووووور الله يرزقك بنت الحلالللللللللللللل يا رببببببببب واخيراااااااااااااااااااا Edited October 8, 2012 by Guest
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