Jump to content

Seba500PLK

Members
  • Posts

    239
  • Joined

  • Last visited

Everything posted by Seba500PLK

  1. Hello, saves the file when I got this error: [2014-08-25 17:10:07] WARNING: [skrypty]/Zapis/zapis.lua:19: Bad argument @ 'getElementRotation' [Expected rotation-order at argument 2, got player] <Pojazd> <Pojazd rotX="false" rotY="nil" rotZ="nil"></Pojazd> </Pojazd> function save(theVehicle) for i, col in ipairs(getElementsByType("vehicle")) do local time = getRealTime() local sec = time.second local minu = time.minute local h = time.hour local day = time.monthday local month = time.month + 1 local year = time.year + 1900 local rx, ry, rz = getElementRotation(col, theVehicle) Node = xmlLoadFile("Pojazdy/[" .. year .. "-" .. month .. "-" .. day .. "_" .. h .. "-" .. minu .. "].xml") if Node then local child = xmlCreateChild(Node,"Pojazd") xmlNodeSetAttribute(child,"rotX",tostring(rx)) xmlNodeSetAttribute(child,"rotY",tostring(ry)) xmlNodeSetAttribute(child,"rotZ",tostring(rz)) xmlSaveFile(Node) xmlUnloadFile(Node) --outputChatBox("Saved 1") else Node = xmlCreateFile("Pojazdy/[" .. year .. "-" .. month .. "-" .. day .. "_" .. h .. "-" .. minu .. "].xml","Pojazd") local child = xmlCreateChild(Node,"Pojazd") xmlNodeSetAttribute(child,"rotX",tostring(rx)) xmlNodeSetAttribute(child,"rotY",tostring(ry)) xmlNodeSetAttribute(child,"rotZ",tostring(rz)) xmlSaveFile(Node) xmlUnloadFile(Node) --outputChatBox("Saved 2") end end end addCommandHandler("save",save)
  2. can rewrite the script in order to save all vehicles from the map to the xml file?
  3. Why not work? group "BazaAdminow" works, but the group "BazaAdminowA" no longer works if(isObjectInACLGroup ( "user." .. getAccountName(account), aclGetGroup ( "BazaAdminow" ) ) and isObjectInACLGroup ( "user." .. getAccountName(account), aclGetGroup ( "BazaAdminowA" ) )) then
  4. ok, something I did: --Server function toggleGUI22 (thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Baza1A")) then triggerClientEvent(thePlayer,"toggleGUI222",getRootElement(),thePlayer) end end addEventHandler( "onMarkerHit", marker1, toggleGUI22 ) addEventHandler("onResourceStart",resourceRoot, toggleGUI22) --Client function toggleGUI2() guiSetVisible(button4baza1,false) end addEvent("toggleGUI222",true) addEventHandler("toggleGUI222",root,toggleGUI2) everything works except: if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Baza1A")) then not know what's going on [2014-08-21 11:14:15] ERROR: [DayZ-MTA]/baza1marker2/baza1marker2s.lua:195: attempt to concatenate a boolean value [2014-08-21 11:14:15] WARNING: [DayZ-MTA]/baza1marker2/baza1marker2s.lua:195: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] [2014-08-21 11:14:15] WARNING: [DayZ-MTA]/baza1marker2/baza1marker2s.lua:195: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got resource-data] Line 195 is: if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Baza1A")) then
  5. not really to me it comes out: / can someone give a hint?
  6. ok and not work, casual players see this button
  7. Bad argument @ 'isObjectInACLGroup' [Expected acl-group at argument 2, got boolean]
  8. Hi, how to do just admin to see button in the gui. Help Please --My Client function shopInterface5() local screenWidth, screenHeight = guiGetScreenSize() window1baza5 = guiCreateWindow(screenWidth * 0.24, screenHeight * 0.2, 771, 457, "Base", false) guiWindowSetSizable(window1baza5, false) guiSetVisible(window1baza5,false) baza5button4 = guiCreateButton(10, 255, 246, 78, "Add", false, window1baza5) guiSetFont(baza5button4, "sa-header") guiSetProperty(baza5button4, "NormalTextColour", "FF33DFEF") end addEventHandler("onClientResourceStart", resourceRoot, shopInterface5) function toggleGUI2() if guiGetVisible(baza5button4) == true then guiSetVisible(baza5button4,false) else guiSetVisible(baza5button4,true) end end addEvent("toggleGUI2",true) addEventHandler("toggleGUI2",root,toggleGUI2) --My Server addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do showGUI2(player) end end) function showGUI2(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Baza4A")) then triggerClientEvent(thePlayer,"toggleGUI2",thePlayer) end end
  9. I can do something like this: general.http. ????
  10. Hello, is it possible for five minutes autosave file "internal.db" because my hosting sometimes makes me "jokes" and disables my server, and then players complain where their money. Please help
  11. i'm noob ... and how can I to a specific page http give permission?
  12. as I give the group when everyone is: resource. * ???
  13. or how to use the PHP SDK to give someone money? On the page fits nickname and amount of money and giving money to the server?
  14. can someone help me with this?
  15. I care for this site in mta. How do would not have asked for a username and password?
×
×
  • Create New...