gibt es noch eine andere möglichkeit sich admin im script zu geben?
Beiträge von Ezamik
-
-
#1062 - Duplicate entry '0' for key 'PRIMARY'
kommt dann wenn ich draufdrücke
-
Guten Tag ich hab das Problem das ich mich admin auf meinem vio reallife server geben will, doch ich hab das Problem das ich nicht in der mysql datenbank den wert bei Adminlevel nicht ändern kann. Kann mir jemand helfen?
Fehler:
Externer Inhalt vweb05.nitrado.netInhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.Diese Tabelle enthält keine eindeutige ("unique") Spalte. Gitter-Bearbeitungsfunktion, Kontrollkästchen, Bearbeiten, Kopieren und Löschen von Links sind nicht verfügbar. kann mir wer helfen?
-
wie wäre es das script zu starten
-
Kabel Deutschland
-
jetzt geht es nur eine fehlermeldung steht immer oben
Eingeloggt als Notice: Undefined property: stdClass::$name in /var/customers/webs/ni104577_3/controlpanel/home.php on line 43und kann man die Signaturfunktion anschalten?
-
Die Funktion mta_getServer ist nicht definiert.
Kann dir leider nicht weiterhelfen da ich den code nicht habehttp://www.file-upload.net/download-7588099/ucp.zip.html war auf der ersten seite
kann mir jetzt jemand helfen?
-
Notice: Undefined index: page in /var/customers/webs/ni104577_3/controlpanel/home.php on line 4 Fatal error: Call to undefined function mta_getServer() in /var/customers/webs/ni104577_3/controlpanel/home.php on line 11
kann mir jemand helfen bei mir will es nicht klappen -
bei mir geht das login vom cp nicht kann mir jemand helfen?
pdosingleton.phpPHP<?php /* * Objektorientiertes, Model View Controll Framework * OOP, MVC, PDO Framework * Written by Danny T (ReWrite) * All rights reserved! * * * Please do not remove this Copyrights. The endusers will not see them. * Thank you ! */ class PDOSingleton { private static $connection = null; private static $host = "localhost"; private static $dbname = "-dbname-"; private static $user = "-nutzer-"; private static $pass = "-passwort-"; public static function connection() { if (self::$connection == null) { self::$connection = new PDO('mysql:'.self::$dbname.';host='.self::$host, self::$user, self::$pass); } return self::$connection; } } ?>
------------------------------------------------------------------------------------------------
kann mir wer helfen was falsch sein könnte?
Kann es sein das es nicht für vio extendet geht?
-
Laptop 1:Bildschirm 1:
Externer Inhalt ni104577_3.vweb05.nitrado.netInhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.Und hier die Anzahl der Bildschirme (sehen alle ungefähr so aus nur mit anderen Sachen )
Externer Inhalt ni104577_3.vweb05.nitrado.netInhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt. -
-
Ich möchte es bitte testenhttps://www.dropbox.com/s/xqut5dc2pdk9m2t/lobbysys.rar <- download
-
ja den ganz normalen server port
-
schau mal ob das stimmt:
mtaserver.confSpoiler anzeigen
<!-- This parameter specifies whether the builtin http server will be used.
Values: 0 - disabled , 1 - enabled ; default value: 1. Optional parameter. -->
<httpserver>1</httpserver>
<!-- This parameter specifies the TCP port on which the server will be accepting incoming http
connections. It can be set to the same value as <serverport>. It is a required parameter
if <httpserver> is set to 1. -->
<httpport>dein Server Port</httpport> -
-
Probier mal das:
Spoiler anzeigen
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Allow from all
Deny from ::1 127.0.0.0/8 \<- das nicht hinschreiben
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>falls nicht geht kann ich auch nicht helfen
-
ich würd halt jetzt die mysql.lua verwenden (benutz das geld system auch von backland) das problem es kommt immer ein fehler mit dem db poll
Spoiler anzeigen
"M[m[39;49m[37m[40m [22;1H[04:38:15] WARNING: [gameplay]/DayZ/mysql.lua:521: dbPoll failed; Column count d[23;1Hoesn't match value count at row 1[1B[30m[42m [1@ "
Könntest mir dabei helfen KryPtoHolYx?
-
KryPtoHolYx könnt ich den mysql .lua teil verwenden oder müsst ich noch mehr rausstreichen?
(Halt das die Daten gespeichert werden aber das die daten der Spieler noch am Server gespeichert werden)Spoiler anzeigen
Lua
Alles anzeigenad = { { { { "as" } } } } function ad:as() return "ab" end ad:as()dbConnection = dbConnect("mysql", "dbname=dayz;host=127.0.0.1", "root", "")if(dbConnection ~= false)then outputServerLog("Successfully connected to MySQL!")else outputServerLog("Failed to connect to MySQL!")enddebugmode = false local playerDataTable = { {"alivetime","alivetime"}, {"humanity","humanity"}, {"zombieskilled","zombieskilled"}, {"headshots","headshots"}, {"murders","murders"}, {"banditskilled","banditskilled"}, {"vipCash","cash"}, {"level","level"}} local playerDataTableAlter = { {"alivetime"}, {"bandit"}, {"humanity"}, { "zombieskilled" }, {"headshots"}, {"murders"}, { "banditskilled" }} function playerRegisterb(username, pass, player)--- qr = dbQuery(dbConnection, "SELECT * FROM users") result = dbPoll(qr, -1) for v,k in ipairs(result) do if k['Name'] == getPlayerName(player) then return end end--qh = dbQuery(dbConnection, "SELECT id FROM users")idresult = dbPoll(qh, -1)local id = table.getn(idresult)+1setElementData(player,"id",id)username = tostring(username)serial = getPlayerSerial(player) local number = math.random(table.size(spawnPositions)) local x, y, z = spawnPositions[number][1], spawnPositions[number][2], spawnPositions[number][3] spawnPlayer(player, x, y, z, math.random(0, 360), 73, 0, 0) fadeCamera(player, true) setCameraTarget(player, player) local playerCol = createColSphere(x, y, z, 1.5) attachElements(playerCol, player, 0, 0, 0) setElementData(playerCol, "parent", player) setElementData(playerCol, "player", true) for i, data in ipairs(playerDataTable) do if data[1] == "Bandage" then setElementData(player, data[1], 2) elseif data[1] == "Painkiller" then setElementData(player, data[1], 1) elseif data[1] == "vipCash" then setElementData(player, data[1], 5) elseif data[1] == "MAX_Slots" then setElementData(player, data[1], 10) elseif data[1] == "skin" then setElementData(player, data[1], 73) elseif data[1] == "blood" then setElementData(player, data[1], 12000) elseif data[1] == "temperature" then setElementData(player, data[1], 37) elseif data[1] == "brokenbone" then setElementData(player, data[1], false) elseif data[1] == "pain" then setElementData(player, data[1], false) elseif data[1] == "cold" then setElementData(player, data[1], false) elseif data[1] == "infection" then setElementData(player, data[1], false) elseif data[1] == "food" then setElementData(player, data[1], 100) elseif data[1] == "thirst" then setElementData(player, data[1], 100) elseif data[1] == "currentweapon_1" then setElementData(player, data[1], false) elseif data[1] == "currentweapon_2" then setElementData(player, data[1], false) elseif data[1] == "currentweapon_3" then setElementData(player, data[1], false) elseif data[1] == "bandit" then setElementData(player, data[1], false) elseif data[1] == "humanity" then setElementData(player, data[1], 2500) else setElementData(player, data[1], 0) end end setElementData(player, "logedin", true) createZombieTable(player) local x,y,z = getElementPosition(player) local _,_,rz = getElementRotation(player)local querry = dbQuery(dbConnection, "INSERT INTO users VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", id,username, -- USERNAMEserial, -- SERIALmd5(pass),--PASSWORD0,tonumber(x),tonumber(y),tonumber(z),tonumber(rz),false, -- is Dead5, -- cash1, 0, --alivetime "false", --bandit 12000, --blood 100, --food 100, --thirst 37, --temperature 0, --bleeding 0, --humanity 0, --zombieskilled 0, --headshots 0, --murders 0, --banditskilled )local result = dbPoll( querry, 10 ) endaddEvent("onPlayerDayZRegister",true)addEventHandler("onPlayerDayZRegister", getRootElement(), playerRegisterb) function getTablePositionMySQL ( data )for index,daten in ipairs(playerDataTable) doif (data == daten[2]) thenreturn daten[1]endendendfunction getTablePositionMySQL1 ( data )for index,daten in ipairs(playerDataTable) doif (data == daten[1]) thenreturn daten[2]endendend function playerLogibn(username, pass, player) qr = dbQuery(dbConnection, "SELECT * FROM users WHERE Name ='"..getPlayerName(player).."'") result = dbPoll(qr, -1) password = result[1]['password'] if (password ~= md5(pass)) then kickPlayer(player,"password wrong") end qrb = dbQuery(dbConnection, "SELECT * FROM users WHERE Name ='"..getPlayerName(player).."'") resultqrb = dbPoll(qrb, -1) spawnPlayer(player, resultqrb[1]['x'],resultqrb[1]['y'],resultqrb[1]['z'], resultqrb[1]['rz'], skin, 0, 0) fadeCamera(player, true) setElementData(player,"id",resultqrb[1]['id']) setCameraTarget(player, player) local x,y,z = getElementPosition(player) local playerColshape = createColSphere(x, y, z, 1.5) setElementData(player, "playerCol", playerColshape) attachElements(playerColshape, player, 0, 0, 0) setElementData(playerColshape, "parent", player) setElementData(playerColshape, "player", true) setElementPosition(player,resultqrb[1]['x'],resultqrb[1]['y'],resultqrb[1]['z']) setElementRotation(player,0,0,resultqrb[1]['rz']) if (resultqrb[1]['rank'] == "1") then setElementData(player,"admin",false) setElementData(player,"supporter",true) outputDebugString(resultqrb[1]['rank']) elseif (resultqrb[1]['rank'] == "2") then setElementData(player,"admin",true) setElementData(player,"supporter",false) local account = getAccount ( username, pass ) if ( account ~= false ) then logIn ( player, account, pass ) outputChatBox("",player) outputChatBox("",player) outputChatBox("",player) outputChatBox("",player) outputChatBox("",player) outputChatBox("",player) outputChatBox("",player) outputChatBox("",player) outputChatBox("",player) outputChatBox("",player) end outputDebugString(resultqrb[1]['rank']) elseif (resultqrb[1]['rank'] == "3") then setElementData(player,"owner",true) end setElementData(player,"level",resultqrb[1]['level']) for i, datensatz in ipairs(playerDataTable) do if (datensatz[1] == "bandit") or (datensatz[1] == "brokenbone") or (datensatz[1] == "currentweapon_1") or (datensatz[1] == "currentweapon_2") or (datensatz[1] == "currentweapon_3") or (datensatz[1] == "pain") or (datensatz[1] == "cold") or (datensatz[1] == "infection") then if (resultqrb[1][datensatz[2]] == "1") then dayzDate = true outputDebugString(datensatz[1].." ; "..resultqrb[1][datensatz[2]]) elseif (resultqrb[1][datensatz[2]] == "0") then dayzDate = false outputDebugString(datensatz[1].." ; "..resultqrb[1][datensatz[2]]) end else dayzDate = tonumber(resultqrb[1][datensatz[2]]) end if (datensatz[1] == "level") then outputDebugString(datensatz[1].." ; "..resultqrb[1][datensatz[2]]) end setElementData(player,datensatz[1],dayzDate) end createZombieTable(player) if result[1]['isDead'] == "1" then spawnDayZPlayer(player) dbPoll(dbQuery(dbConnection, "UPDATE users SET isDead='0' WHERE Name ='"..getPlayerName(player).."'"), -1) return end endaddEvent("onPlayerDayZLogin", true)addEventHandler("onPlayerDayZLogin", getRootElement(), playerLogibn) function saveAccounts3() local account = getPlayerAccount(source) if account then local x,y,z = getElementPosition(source) local _,_,rz = getElementRotation(source) qh = dbQuery(dbConnection, "UPDATE users SET x="..tostring(x)..", y="..tostring(y)..", z="..tostring(z)..", rz="..tostring(rz).." WHERE Name ='"..getPlayerName(source).."'") resultb = dbPoll(qh, -1) for i, datensatzb in ipairs(playerDataTable) do dataz = getElementData(source,datensatzb[1]) qh = dbQuery(dbConnection, "UPDATE users SET "..datensatzb[2].."="..tostring(dataz).." WHERE Name ='"..getPlayerName(source).."'") resultb = dbPoll(qh, -1) end end setElementData(source, "logedin", false)endaddEventHandler("onPlayerQuit", getRootElement(), saveAccounts3)
geht nur so zum einfügen im Forum
Hab die Datei nochmal angehängt -
Schau mal beim Backland DayZ script, da ists dabei, einfach rum probieren.
MfG
weist du in welcher Datei es ist weil ich finde es im Backland script nicht wo die Überlebenszeit usw. abgespeichert wird
Ok gefunden aber wie bearbeite ich das jetzt so das es mir nur die Daten speichert und nicht die andern alle? -