Jump to content

مشكلة في كود


Recommended Posts

السلام عليكم

وين المشكلةة هنا

function open (  ) 
    guiSetVisible(wnd, not guiGetVisible(wnd))
    showCursor(guiGetVisible(wnd))
	       guiGridListClear(GridList)
    for id, marker in ipairs(getElementsByType("marker")) do
  local row = guiGridListAddRow ( GridList )
guiGridListSetItemText ( GridList, row, 1, "Marker " .. id, false, false )
  end
  end
addCommandHandler ( "camera",open )


addEventHandler("onClientGUIClick",root,
function ()
if source == Cm then
                local x, y, z = getElementPosition(localPlayer)
      marker = createMarker ( x , y , z, "cylinder", 1.5, 255, 255, 0, 170 )
	  elseif source == Rm then
           if guiGridListGetSelectedItem ( GridList ) ~= -1 then
   guiGridListGetItemText( GridList, camera ) 
    guiGridListRemoveRow ( GridList )  
    destroyElement(marker)	
end
end
end)

 

Link to comment
On ٣‏/١٠‏/١٤٣٨ هـ at 19:50, #BrosS said:

debugscript 3

غير معرفة camera سطر  20 

 
مشكلة ثانية اذا سويت اكثر من ماركر مااقدر احذف الماركر الأول؟

 

ترا قصدي اني حليت المشكلة السابقة , ^

Edited by Talis
حليت المشكلة
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...