Jump to content

Focker

Members
  • Posts

    66
  • Joined

  • Last visited

Everything posted by Focker

  1. Focker

    Help

    I mean that when the player has the object can enter or exit an interior inside the object is visible
  2. Focker

    Help

    Thanks it worked, but when I enter one inside the object becomes invisible any function that can make the fence object with the player and interior dimensions
  3. Focker

    Help

    Hi I have a problem in this script, when I place an object the player is haci camera could fix ?? use this local hitMarker2 = createObject ( 1550, 0,0,0 ) attachElements ( hitMarker2, hitElement,0,0.3,0.3) setObjectScale ( hitMarker2, 0.6) here I leave the image http://www.subirimagenes.com/privadas-m ... 17885.html
  4. Focker

    Help

    Thanks GTX you are a pro
  5. Focker

    Help

    You can not fix this bug?
  6. Focker

    Help

    Creates 5 tables and eliminates the 2 and recreated and will give that error will not let you create more
  7. Focker

    Help

    Thank you !!!!!! Now I get error in a part of the script says Database query failed: PRIMARY KEY must be unique It is when I delete something and then try to give that error
  8. alguien que me ayude
  9. for i, gs in pairs(tab) do local row = guiGridListAddRow(logadmin) guiGridListSetItemText(logadmin, row,logadm1, gs.Fecha, false, true) guiGridListSetItemText(logadmin, row,logadm2, gs.Admin, false, true) guiGridListSetItemText(logadmin, row,logadm3, gs.Premio, false, true) guiGridListSetItemText(logadmin, row,logadm4, gs.Cantidad, false, true) guiGridListSetItemText(logadmin, row,logadm5, gs.SelecTodos, false, true) guiGridListSetItemText(logadmin, row,logadm6, gs.Jugador, false, true) end eso es para que aparesca los datos en la lista, pero yo quiero hacer para que se borre el seleccionado solamente eso
  10. executeSQLInsert ( "LogAdmin", "'["..hou..":"..min.."("..day.."/"..(mes+1).."/"..(yea-100)..")]','".. getPlayerName(source) .."','Premio','".. premio.."','Seleccionado',' "..player.."'" ) uso eso para guardar la informacion en la lista, pero luego pulso el boton borrar y te borra todo lo de la lista y yo solo quiero lo seleccionado
  11. Hola necesito ayuda en mi script, quiero que se borre la linea seleccionada apretando solo el boton pero me borra todo. Client logadmin = guiCreateGridList(0.01, 0.04, 0.70, 0.91, true, TabTest2) logadm1 = guiGridListAddColumn(logadmin, "Fecha", 0.1) logadm2 = guiGridListAddColumn(logadmin, "Admin", 0.3) logadm3 = guiGridListAddColumn(logadmin, "Premio", 0.3) logadm4 = guiGridListAddColumn(logadmin, "Cantidad", 0.3) logadm5 = guiGridListAddColumn(logadmin, "Selecc/Todos", 0.3) logadm6 = guiGridListAddColumn(logadmin, "Jugador", 0.3) borrarselec = guiCreateButton(0.73, 0.24, 0.13, 0.09, "Borrar Seleccionado", true, TabTest2) function onbtn() if source == borrarselec then borrarlogadmin() end end addEventHandler("onClientGUIClick", root, onbtn) function veryaellogad(tab) guiGridListClear(logadmin) for i, gs in pairs(tab) do local row = guiGridListAddRow(logadmin) guiGridListSetItemText(logadmin, row,logadm1, gs.Fecha, false, true) guiGridListSetItemText(logadmin, row,logadm2, gs.Admin, false, true) guiGridListSetItemText(logadmin, row,logadm3, gs.Premio, false, true) guiGridListSetItemText(logadmin, row,logadm4, gs.Cantidad, false, true) guiGridListSetItemText(logadmin, row,logadm5, gs.SelecTodos, false, true) guiGridListSetItemText(logadmin, row,logadm6, gs.Jugador, false, true) end end addEvent("veryaellog", true) addEventHandler("veryaellog", root, veryaellogad) function borrarlogadmin() local path = guiGridListGetItemText(logadmin, guiGridListGetSelectedItem(logadmin), 1) local admin = guiGridListGetItemText(logadmin, guiGridListGetSelectedItem(logadmin), 2) local premio = guiGridListGetItemText(logadmin, guiGridListGetSelectedItem(logadmin), 3) local cantidad = guiGridListGetItemText(logadmin, guiGridListGetSelectedItem(logadmin), 4) local selectodos = guiGridListGetItemText(logadmin, guiGridListGetSelectedItem(logadmin), 5) local plr = guiGridListGetItemText(logadmin, guiGridListGetSelectedItem(logadmin), 6) if path and path ~= -1 then triggerServerEvent("borrarlogadmin", localPlayer, path, admin, premio, cantidad, selectodos, plr) end end Server executeSQLQuery("CREATE TABLE IF NOT EXISTS LogAdmin (Fecha TEXT, Admin TEXT, Premio TEXT,Cantidad TEXT,SelecTodos TEXT,Jugador TEXT)") function VerLogAdmin() tablodelgadmin = executeSQLQuery("SELECT * FROM LogAdmin") triggerClientEvent (source,"veryaellog",source,tablodelgadmin) end addEvent ("VerLogAdmin", true) addEventHandler ("VerLogAdmin", root, VerLogAdmin) addEvent("borrarlogadmin", true) function borrarlogadmin(path, admin, premio, cantidad, selectodos, plr) if path then executeSQLQuery("DELETE FROM LogAdmin WHERE Fecha='"..path.."' AND Admin='"..admin.."' AND Premio='"..premio.."' AND Cantidad='"..cantidad.."' AND SelecTodos='"..selectodos.."' AND Jugador='"..plr.."'") VerLogAdmin() end end addEventHandler("borrarlogadmin", root, borrarlogadmin)
  12. I donot apology English: v'm translator google and I need you to help me in this script please
  13. Sorry, there are rows pampering names
  14. if the same but please Help me in this script
  15. as usual, there is no error and continue erasing everything and just want the selected: c
  16. sorry for the spam I did not realize it had sent the message, I am new to the forum
  17. Error on line 14 executeSQLQuery("DELETE FROM LogAdmin WHERE Fecha='"..path.."' AND Jugador='"..plr.."' LIMIT 1")
  18. get error on line 14 executeSQLQuery("DELETE FROM LogAdmin WHERE Fecha='"..path.."' AND
×
×
  • Create New...