Die Tunes die man bei SF beim Pay'n Spray machen kann also Nitro,reifen,licht
Beiträge von DyroN
-
-
Weiß jemand warum die Tunes nicht speichern?
Fehlercode:
Code[13:14:41] WARNING: ultimate/carsys/carcommands.lua:102: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [13:15:50] WARNING: ultimate/carsys/carcommands.lua:102: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [13:16:10] WARNING: ultimate/carsys/carcommands.lua:102: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [13:16:34] WARNING: ultimate/carsys/carcommands.lua:102: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [13:16:38] WARNING: ultimate/carsys/carcommands.lua:102: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [13:17:32] WARNING: ultimate/carsys/tuning/tuning_server.lua:239: dbExec failed; (1048) Column 'Paintjob' cannot be null
Hier die Zeilen:Lua
Alles anzeigenvehBlipColor = {} vehBlipColor["r"] = {} vehBlipColor["g"] = {} vehBlipColor["b"] = {} color = 1 vehBlipColor["r"][color] = 255 vehBlipColor["g"][color] = 0 vehBlipColor["b"][color] = 0 color = color + 1 vehBlipColor["r"][color] = 0 vehBlipColor["g"][color] = 255 vehBlipColor["b"][color] = 0 color = color + 1 vehBlipColor["r"][color] = 0 vehBlipColor["g"][color] = 0 vehBlipColor["b"][color] = 255 color = color + 1 vehBlipColor["r"][color] = 0 vehBlipColor["g"][color] = 0 vehBlipColor["b"][color] = 0 color = color + 1 vehBlipColor["r"][color] = 255 vehBlipColor["g"][color] = 255 vehBlipColor["b"][color] = 255 color = color + 1 vehBlipColor["r"][color] = 255 vehBlipColor["g"][color] = 255 vehBlipColor["b"][color] = 0 color = color + 1 vehBlipColor["r"][color] = 255 vehBlipColor["g"][color] = 0 vehBlipColor["b"][color] = 255 color = color + 1 vehBlipColor["r"][color] = 0 vehBlipColor["g"][color] = 255 vehBlipColor["b"][color] = 255 color = color + 1 vehBlipColor["r"][color] = 125 vehBlipColor["g"][color] = 125 vehBlipColor["b"][color] = 125 color = color + 1 vehBlipColor["r"][color] = 255 vehBlipColor["g"][color] = 150 vehBlipColor["b"][color] = 0 color = color + 1 color = nil function respawnPrivVeh ( carslot, pname ) local carslot = tonumber ( carslot ) local vehicle = allPrivateCars[pname][carslot] or false if isElement ( vehicle ) then if vioGetElementData ( vehicle, "special" ) == 2 then detachElements ( objectYacht[pname][carslot], vehicle ) destroyElement ( objectYacht[pname][carslot] ) special = 2 end destroyMagnet ( vehicle ) dbExec ( handler, "UPDATE vehicles SET ??=? WHERE ??=? AND ??=?", "Benzin", vioGetElementData(vehicle,"fuelstate"), "UID", playerUID[pname], "Slot", carslot ) destroyElement ( vehicle ) end local dsatz = dbPoll ( dbQuery ( handler, "SELECT * from vehicles WHERE UID = ? AND Slot = ?", playerUID[pname], carslot ), -1 ) if dsatz and dsatz[1] then dsatz = dsatz[1] local Besitzer = playerUIDName[tonumber(dsatz["UID"])] local Typ = tonumber ( dsatz["Typ"] ) local Tuning = dsatz["Tuning"] local Spawnpos_X = tonumber ( dsatz["Spawnpos_X"] ) local Spawnpos_Y = tonumber ( dsatz["Spawnpos_Y"] ) local Spawnpos_Z = tonumber ( dsatz["Spawnpos_Z"] ) local Spawnrot_X = tonumber ( dsatz["Spawnrot_X"] ) local Spawnrot_Y = tonumber ( dsatz["Spawnrot_Y"] ) local Spawnrot_Z = tonumber ( dsatz["Spawnrot_Z"] ) local Farbe = dsatz["Farbe"] local LFarbe = dsatz["Lights"] local Paintjob = tonumber ( dsatz["Paintjob"] ) local Benzin = tonumber ( dsatz["Benzin"] ) local Distanz = tonumber ( dsatz["Distance"] ) local STuning = dsatz["STuning"] local Spezcolor = dsatz["spezcolor"] local Sportmotor = tonumber (dsatz["Sportmotor"]) local Bremse = tonumber (dsatz["Bremse"] ) local Antrieb = dsatz["Antrieb"] local PlateText = dsatz["plate"] vehicle = createVehicle ( Typ, Spawnpos_X, Spawnpos_Y, Spawnpos_Z, 0, 0, 0, Besitzer ) allPrivateCars[pname][carslot] = vehicle vioSetElementData ( vehicle, "owner", Besitzer ) vioSetElementData ( vehicle, "name", vehicle ) vioSetElementData ( vehicle, "carslotnr_owner", carslot ) vioSetElementData ( vehicle, "locked", true ) vioSetElementData ( vehicle, "color", Farbe ) vioSetElementData ( vehicle, "lcolor", LFarbe ) vioSetElementData ( vehicle, "spawnpos_x", Spawnpos_X ) vioSetElementData ( vehicle, "spawnpos_y", Spawnpos_Y ) vioSetElementData ( vehicle, "spawnpos_z", Spawnpos_Z ) vioSetElementData ( vehicle, "spawnrot_x", Spawnrot_X ) vioSetElementData ( vehicle, "spawnrot_y", Spawnrot_Y ) vioSetElementData ( vehicle, "spawnrot_z", Spawnrot_Z ) vioSetElementData ( vehicle, "distance", Distanz ) vioSetElementData ( vehicle, "stuning", STuning ) vioSetElementData ( vehicle, "spezcolor", Spezcolor ) setVehiclePlateText( vehicle, PlateText ) vioSetElementData ( vehicle, "rcVehicle", tonumber ( dsatz["rc"] ) ) vioSetElementData ( vehicle, "sportmotor", Sportmotor ) vioSetElementData ( vehicle, "bremse", Bremse ) vioSetElementData ( vehicle, "antrieb", Antrieb ) setVehicleLocked ( vehicle, true ) vioSetElementData ( vehicle, "fuelstate", Benzin ) setPrivVehCorrectColor ( vehicle ) setPrivVehCorrectLightColor ( vehicle ) setVehiclePaintjob ( vehicle, Paintjob ) if special == 2 then objectYacht[pname][carslot] = createObject ( 1337, 0, 0, 0 ) attachElements ( objectYacht[pname][carslot], vehicle, 0, 2, 1.55 ) setElementDimension (objectYacht[pname][carslot], 1 ) end giveSportmotorUpgrade ( vehicle ) setVehicleRotation ( vehicle, Spawnrot_X, Spawnrot_Y, Spawnrot_Z ) pimpVeh ( vehicle, Tuning ) setVehicleAsMagnetHelicopter ( vehicle ) return true end return false end
-
Danke an alle!
-
hast ne PN
-
Lua
Alles anzeigen<script src="fun\shootingranch\shootingranch_both.lua" type="client" /> <script src="fun\shootingranch\shootingranch_both.lua" type="server" /> <script src="fun\shootingranch\shootingranch_client.lua" type="client" /> <script src="fun\shootingranch\shootingranch_server.lua" type="server" /> <script src="fun\skydive\skydive.lua" /> <script src="fun\stripclub\pets.lua" /> <script src="fun\stripclub\teleporter.lua" /> <script src="fun\ueberfall\server.lua" /> <!--- Buchstabe "G" ---> <script src="gangs\gangs_client.lua" type="client"/> <script src="gangs\gangs_gui_client.lua" type="client"/> <script src="gangs\gangs_gui_server.lua" type="server"/> <script src="gangs\gangs_mysql.lua" type="server"/> <script src="gangs\gangs_server.lua" type="server"/> <script src="gangs\gangs_settings.lua" type="client"/> <script src="gangs\gangs_settings.lua" type="server"/> <!--- s.h. unter "H" --> <script src="guns\dmgsys_server.lua" /> <script src="Reporthalle/Reporthalle_server.lua"/> <map src="Reporthalle/Reporthalle.map"/> <script src="guns\firemode_client.lua" type="client"/> <script src="guns\guncrate_client.lua" type="client"/> <script src="guns\guncrate_server.lua" /> <script src="guns\guns_client.lua" type="client"/> <script src="guns\helidb_client.lua" type="client"/> <script src="guns\helidb_server.lua" /> <script src="guns\knife_client.lua" type="client"/> <script src="guns\misfire_client.lua" type="client"/> <script src="guns\misfire_server.lua" type="server"/> <script src="guns\refiredelay_client.lua" type="client" /> <script src="guns\running_weapons_client.lua" type="client" /> <script src="guns\reload\reload_server.lua" /> <script src="guns\reload\reload_client.lua" type="client" />
Wie heißt das alte Reportsystem?
-
da hatte ich es auch schon scroll mal weiter nachunten da ist der fehler nicht mehr
-
hab ich danach geändert danach kommt der fehler ja nicht mehr
-
Code
Alles anzeigen[22:45:07] restart: Requested by [Axe]DyroN [22:45:07] Stopping ultimate [22:45:07] INFO: Bizkassen wurden gespeichert! [22:45:07] Resource 'ultimate' changed, reloading and starting [22:45:07] ERROR: Couldn't find map Reporthalle.map for resource ultimate [22:45:07] Loading of resource 'ultimate' failed [22:45:07] ERROR: Unable to restart resource ultimate [22:45:51] CHAT: MRLTHD: Nice [22:46:10] CHAT: MRLTHD: kein Gamemode am laufen :/ [22:46:12] restart: Requested by [Axe]DyroN [22:46:40] restart: Requested by [Axe]DyroN [22:46:54] Resource 'ultimate' changed, reloading [22:46:54] ERROR: Couldn't find script Reporthalle_server.lua for resource ultimate [22:46:54] Loading of resource 'ultimate' failed [22:46:54] ERROR: Couldn't find file BoomLoop.mp3 for resource xxx [22:46:54] Loading of resource 'xxx' failed [22:46:54] ERROR: Problem with resource: mapcycler; Failed to link to votemanager [22:46:54] ERROR: Problem with resource: race; Failed to link to votemanager [22:46:54] Resources: 205 loaded, 2 failed [22:47:00] QUIT: MRLTHD left the game [Quit] [22:47:01] CONNECT: MRLTHD connected (IP: 89.15.239.101 Serial: DDBE3BAFD705BB741CC5C0FAD103C6F4 Version: 1.5.4-9.11664.7) [22:47:02] JOIN: MRLTHD joined the game (IP: 89.15.239.101) [22:47:19] CHAT: MRLTHD: Was nun los? [22:47:25] CHAT: [Axe]SmokeZ: Chill [22:47:37] CHAT: MRLTHD: Gerne :D [22:47:54] CHAT: MRLTHD: verwundert mich nur bisschen. :) [22:48:04] ERROR: Couldn't find script race/settings_both.lua for resource ultimate [22:48:04] Loading of resource 'ultimate' failed [22:48:04] ERROR: Couldn't find file BoomLoop.mp3 for resource xxx [22:48:04] Loading of resource 'xxx' failed [22:48:04] ERROR: Problem with resource: mapcycler; Failed to link to votemanager [22:48:04] ERROR: Problem with resource: race; Failed to link to votemanager [22:48:04] Resources: 205 loaded, 2 failed [22:48:07] CHAT: Yakino: wundert* [22:48:33] CHAT: [Axe]SmokeZ: Es kommt gleich wieder [22:49:00] New resource 'ultimate' loaded [22:49:00] ERROR: Couldn't find file BoomLoop.mp3 for resource xxx [22:49:00] Loading of resource 'xxx' failed [22:49:00] ERROR: Problem with resource: mapcycler; Failed to link to votemanager [22:49:00] ERROR: Problem with resource: race; Failed to link to votemanager [22:49:00] Resources: 206 loaded, 2 failed [22:49:05] start: Requested by [Axe]DyroN [22:49:05] WARNING: ultimate/usefull/utility.lua(Line 56) [Client] getControlState is deprecated and may not work in future versions. Please replace with getPedControlState. [22:49:05] WARNING: ultimate/addict/client/effects_client.lua(Line 135) [Client] setControlState is deprecated and may not work in future versions. Please replace with setPedControlState. [22:49:05] WARNING: ultimate/addict/client/effects_client.lua(Line 148) [Client] getControlState is deprecated and may not work in future versions. Please replace with getPedControlState. [22:49:05] WARNING: ultimate/blips/customblips.lua(Line 56) [Client] getControlState is deprecated and may not work in future versions. Please replace with getPedControlState. [22:49:05] Please wait... [22:49:05] WARNING: ultimate/client/nametag_client.lua(Line 165) [Client] getControlState is deprecated and may not work in future versions. Please replace with getPedControlState. [22:49:05] WARNING: ultimate/fraktionen/army/army_refire.lua(Line 13) [Client] setControlState is deprecated and may not work in future versions. Please replace with setPedControlState. [22:49:05] WARNING: ultimate/fun/casinorob/casinorob_client.lua(Line 25) [Client] getControlState is deprecated and may not work in future versions. Please replace with getPedControlState. [22:49:05] WARNING: ultimate/fun/shootingranch/shootingranch_client.lua(Line 106) [Client] setControlState is deprecated and may not work in future versions. Please replace with setPedControlState. [22:49:05] WARNING: ultimate/guns/firemode_client.lua(Line 56) [Client] setControlState is deprecated and may not work in future versions. Please replace with setPedControlState. [22:49:05] WARNING: ultimate/guns/firemode_client.lua(Line 71) [Client] getControlState is deprecated and may not work in future versions. Please replace with getPedControlState. [22:49:05] WARNING: ultimate/guns/refiredelay_client.lua(Line 22) [Client] setControlState is deprecated and may not work in future versions. Please replace with setPedControlState. [22:49:05] WARNING: ultimate/hobby/rcclub/rc_client.lua(Line 177) [Client] setControlState is deprecated and may not work in future versions. Please replace with setPedControlState. [22:49:05] Some files in 'ultimate' use deprecated functions. [22:49:05] Use the 'upgrade' command to perform a basic upgrade of resources. [22:49:05] Starting ultimate [22:49:05] INFO: Found: 1 Garages [22:49:05] Server password cleared [22:49:05] Es wurden 3 Hanfpflanzen gefunden! [22:49:06] Es wurden 11 Autohäuser gefunden! [22:49:06] Es wurden keine Mails gefunden [22:49:06] Es wurden keine platzierbaren Objekte gefunden. [22:49:06] Es wurden keine Highscores [22:49:06] WARNING: ultimate/mysql/mysql_functions.lua:511: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [22:49:06] WARNING: ultimate/mysql/mysql_functions.lua:511: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [DUP x16] [22:49:06] INFO: Es wurden 21 Fahrzeuge von 10 verschiedenen Besitzern geladen [22:49:06] Es wurden 14 prestige Objekte gefunden. [22:49:06] Es wurden 157 Haeuser gefunden [22:49:06] Gamemode 'Ultimate.' started. [22:49:09] ERROR: ultimate/usefull/utility.lua:93: attempt to perform arithmetic on a nil value [22:49:10] INFO: Spieler [Axe]DyroN wurde eingeloggt, IP: 95.90.222.163 [22:49:12] INFO: Spieler Benji wurde eingeloggt, IP: 31.16.254.244 [22:49:18] INFO: Spieler MRLTHD wurde eingeloggt, IP: 89.15.239.101 [22:49:19] INFO: Spieler Yakino wurde eingeloggt, IP: 31.16.248.122 [22:49:36] SCRIPT: [Axe]DyroN set their script debug mode to 3 [22:49:43] INFO: Spieler [Axe]SmokeZ wurde eingeloggt, IP: 84.148.229.210 [22:49:51] INFO: Spieler SchlitzKopfLarry wurde eingeloggt, IP: 93.254.205.103 [22:50:05] WARNING: ultimate/admin/allround_log.lua:43: dbExec failed; (1048) Column 'Typ' cannot be null [22:50:11] WARNING: ultimate/admin/allround_log.lua:43: dbExec failed; (1048) Column 'Typ' cannot be null [DUP x3] [22:50:37] INFO: Spieler Biggie. wurde eingeloggt, IP: 95.91.232.137 [22:51:18] WARNING: ultimate/carsys/carcommands.lua:102: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [22:51:31] ADMIN: [Axe]SmokeZ has changed [Axe]SmokeZ's Sniper skill to 1000 [22:51:32] ADMIN: [Axe]SmokeZ has changed [Axe]SmokeZ's M4 skill to 1000 [22:51:32] ADMIN: [Axe]SmokeZ has changed [Axe]SmokeZ's MP5 skill to 1000 [22:51:33] ADMIN: [Axe]SmokeZ has changed [Axe]SmokeZ's Shotgun skill to 1000 [22:51:34] ADMIN: [Axe]SmokeZ has changed [Axe]SmokeZ's Desert Eagle skill to 1000 [22:51:34] ADMIN: [Axe]SmokeZ has changed [Axe]SmokeZ's Silenced Pistol skill to 1000 [22:51:35] ADMIN: [Axe]SmokeZ has changed [Axe]SmokeZ's Pistol skill to 1000 [22:51:50] ADMIN: [Axe]SmokeZ has given [Axe]SmokeZ 'M4' [22:51:51] ADMIN: [Axe]SmokeZ has given [Axe]SmokeZ 'M4' [22:51:51] ADMIN: [Axe]SmokeZ has given [Axe]SmokeZ 'M4' [22:51:51] ADMIN: [Axe]SmokeZ has given [Axe]SmokeZ 'M4' [22:52:05] WARNING: ultimate/admin/allround_log.lua:43: dbExec failed; (1048) Column 'Typ' cannot be null [22:52:10] ADMIN: [Axe]SmokeZ has given [Axe]SmokeZ 'Deagle' [22:52:10] ADMIN: [Axe]SmokeZ has given [Axe]SmokeZ 'Deagle' [22:52:10] ADMIN: [Axe]SmokeZ has given [Axe]SmokeZ 'Deagle' [22:52:10] ADMIN: [Axe]SmokeZ has given [Axe]SmokeZ 'Deagle' [22:52:11] WARNING: ultimate/admin/allround_log.lua:43: dbExec failed; (1048) Column 'Typ' cannot be null [22:52:17] INFO: Spieler CurryWust wurde eingeloggt, IP: 93.192.120.187 [22:52:42] CONNECT: AcousticFireengine10 connected (IP: 80.131.56.66 Serial: E01F04FC697D41B9D15B4225B0134854 Version: 1.5.4-9.11664.7) [22:52:45] JOIN: AcousticFireengine10 joined the game (IP: 80.131.56.66) [22:52:46] ERROR: Couldn't find file BoomLoop.mp3 for resource xxx [22:52:46] Loading of resource 'xxx' failed [22:52:46] ERROR: Problem with resource: mapcycler; Failed to link to votemanager [22:52:46] ERROR: Problem with resource: race; Failed to link to votemanager [22:52:46] Resources: 206 loaded, 2 failed [22:52:51] WARNING: ultimate/carsys/tuning/tuning_server.lua:239: dbExec failed; (1048) Column 'Paintjob' cannot be null [22:53:05] WARNING: ultimate/admin/allround_log.lua:43: dbExec failed; (1048) Column 'Typ' cannot be null [22:53:11] WARNING: ultimate/admin/allround_log.lua:43: dbExec failed; (1048) Column 'Typ' cannot be null [DUP x2] [22:53:39] CONNECT: 0neSh0t0neK1ll connected (IP: 88.153.227.30 Serial: E518D00C062EA7C91EDEFEDBF9CE16F2 Version: 1.5.4-9.11664.7) [22:53:41] JOIN: 0neSh0t0neK1ll joined the game (IP: 88.153.227.30) [22:53:44] WARNING: ultimate/carsys/tuning/tuning_server.lua:239: dbExec failed; (1048) Column 'Paintjob' cannot be null [22:53:55] INFO: Spieler 0neSh0t0neK1ll wurde eingeloggt, IP: 88.153.227.30 [22:53:56] ERROR: Couldn't find file BoomLoop.mp3 for resource xxx [22:53:56] Loading of resource 'xxx' failed [22:53:56] ERROR: Problem with resource: mapcycler; Failed to link to votemanager [22:53:56] ERROR: Problem with resource: race; Failed to link to votemanager [22:53:56] Resources: 206 loaded, 2 failed [22:54:00] WARNING: ultimate/carsys/carcommands.lua:102: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [22:54:05] WARNING: ultimate/admin/allround_log.lua:43: dbExec failed; (1048) Column 'Typ' cannot be null [22:54:11] WARNING: ultimate/admin/allround_log.lua:43: dbExec failed; (1048) Column 'Typ' cannot be null [22:54:24] ADMIN: [Axe]SmokeZ has given [Axe]SmokeZ a 'Maverick'" [22:54:36] WARNING: ultimate/carsys/tuning/tuning_server.lua:239: dbExec failed; (1048) Column 'Paintjob' cannot be null [22:54:55] QUIT: AcousticFireengine10 left the game [Quit] [22:55:00] CONNECT: ZeuZz_420 connected (IP: 80.131.56.66 Serial: E01F04FC697D41B9D15B4225B0134854 Version: 1.5.4-9.11664.7) [22:55:01] JOIN: ZeuZz_420 joined the game (IP: 80.131.56.66) [22:55:05] WARNING: ultimate/admin/allround_log.lua:43: dbExec failed; (1048) Column 'Typ' cannot be null [22:55:21] WARNING: ultimate/carsys/carcommands.lua:102: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [22:55:27] WARNING: ultimate/carsys/carcommands.lua:102: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [22:56:09] KICK: ZeuZz_420 was kicked from the game by Console (Du hast schon ein Account mit einem anderen Namen (AcousticFi...) [22:56:31] ADMIN: [Axe]SmokeZ has given [Axe]SmokeZ a 'Cargobob'" [22:56:42] CONNECT: ZeuZz_420 connected (IP: 80.131.56.66 Serial: E01F04FC697D41B9D15B4225B0134854 Version: 1.5.4-9.11664.7) [22:56:43] JOIN: ZeuZz_420 joined the game (IP: 80.131.56.66) [22:56:54] WARNING: ultimate/carsys/carcommands.lua:102: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [22:57:00] WARNING: ultimate/carsys/carcommands.lua:102: Bad argument @ 'setVehiclePlateText' [Expected string at argument 2, got boolean] [22:58:22] ERROR: Problem with resource: mapcycler; Failed to link to votemanager [22:58:22] ERROR: Problem with resource: race; Failed to link to votemanager [22:58:25] QUIT: 0neSh0t0neK1ll left the game [Quit] [22:58:25] INFO: Statistiken von 0neSh0t0neK1ll gespeichert! [22:58:25] INFO: Daten für Spieler 0neSh0t0neK1ll wurden gesichert! [22:58:27] CONNECT: 0neSh0t0neK1ll connected (IP: 88.153.227.30 Serial: E518D00C062EA7C91EDEFEDBF9CE16F2 Version: 1.5.4-9.11664.7) [22:58:27] JOIN: 0neSh0t0neK1ll joined the game (IP: 88.153.227.30) [22:58:53] INFO: Spieler 0neSh0t0neK1ll wurde eingeloggt, IP: 88.153.227.30 [22:59:00] WARNING: ultimate/carsys/tuning/tuning_server.lua:239: dbExec failed; (1048) Column 'Paintjob' cannot be null [22:59:28] SCRIPT: [Axe]DyroN set their script debug mode to 0 [22:59:37] KICK: ZeuZz_420 was kicked from the game by Console (Du hast schon ein Account mit einem anderen
-
ja ist im ordner mit drinne und in der meta.xml vom script eingefügt
-
Habe eine Reporthalle installiert kommt oben auch die Anzeige aber ich spawne einfach in LS und nicht auf der Reporthalle.map.
Weiß jemand wo ran das liegen könnte
-
Habe die Reporthalle installiert aber spawne nicht auf der Map sondern wird nur der Befehl angezeigt
-
soll ich das in der datenbank.sql ändern oder im script?
Edit: Danke für die Hilfe habe es einfach in der Struktur auf 0 geändert und jetzt klappt alles!
-
bringt nichts
-
wo muss ich das ändern
-
was ist der stanardwert?
-
Habe das Ultimate Rework allerdings sobald man sein Fahrzeug respawnen möchte steht das Fahrzeug ist nicht leer und es wird gelöscht hier der Fehler:
Code[20:48:22] WARNING: ultimate/carsys/carhouses/carbuy_allround.lua:118: dbExec failed; (1364) Field 'plate' doesn't have a default value [20:48:28] WARNING: ultimate/carsys/carhouses/carbuy_allround.lua:118: dbExec failed; (1364) Field 'plate' doesn't have a default value
Und hier das Script:
Lua
Alles anzeigenfunction carbuy ( player, carprice, vehid, spawnx, spawny, spawnz, rx, ry, rz, c1, c2, c3, c4, p, ec, Tuning ) local carprice = carprice local vehid = tonumber ( vehid ) local spawnx = tonumber ( spawnx ) local spawny = tonumber ( spawny ) local spawnz = tonumber ( spawnz ) local Tuning = Tuning local pname = getPlayerName ( player ) local hasCamper = false if not carprices[vehid] then if aiCarPrices[vehid] then table.insert ( carprices, vehid, aiCarPrices[vehid] ) end end if camper[vehid] then local dsatz = dbPoll ( dbQuery ( handler, "SELECT Typ from vehicles WHERE ??=?", "UID", playerUID[pname] ), -1 ) if dsatz and dsatz[1] then for i=1, #dsatz do if camper[tonumber(dsatz[i]["Typ"])] then outputChatBox ( "Du kannst nur einen Wohnwagen haben!", player, 125, 0, 0 ) return end end end end local slot = 0 local differenz = 0 if carprices[vehid] or vioGetElementData ( player, "everyCarBuyableForFree" ) then if vioGetElementData ( player, "maxcars" ) > vioGetElementData ( player, "curcars" ) then for i=1, vioGetElementData ( player, "maxcars" ) do if vioGetElementData ( player, "carslot"..i ) == 0 then slot = i break end end if slot > 0 then if not vioGetElementData ( player, "everyCarBuyableForFree" ) then if carprices[tonumber(vehid)] then carprice = carprices[tonumber(vehid)] end if ec then differenz = vioGetElementData ( player, "bankmoney" ) - carprice else differenz = vioGetElementData ( player, "money" ) - carprice end end if vioGetElementData ( player, "everyCarBuyableForFree" ) or differenz >= 0 then if hasPlayerLicense ( player, tonumber(vehid) ) then setElementDimension ( player, 0 ) setElementInterior ( player, 0 ) fadeCamera( player, true) setCameraTarget( player, player ) local vehicle = createVehicle ( vehid, spawnx, spawny, spawnz, 0, 0, 0, pname ) allPrivateCars[pname][slot] = vehicle vioSetElementData ( vehicle, "owner", pname ) vioSetElementData ( vehicle, "name", vehicle ) vioSetElementData ( vehicle, "carslotnr_owner", slot ) vioSetElementData ( vehicle, "locked", true ) vioSetElementData ( vehicle, "fuelstate", 100 ) setVehicleLocked ( vehicle, true ) vioSetElementData ( player, "carslot"..slot, 1 ) vioSetElementData ( player, "curcars", vioGetElementData ( player, "curcars" )+1 ) vioSetElementData ( player, "FahrzeugeGekauft", vioGetElementData ( player, "FahrzeugeGekauft" ) + 1 ) if not Tuning then Tuning = "|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|" end setVehicleRotation ( vehicle, rx, ry, rz ) local Farbe1, Farbe2, Farbe3, Farbe4 local Paintjob if not c1 or not c2 or not c3 or not c4 then Farbe1, Farbe2, Farbe3, Farbe4 = getVehicleColor ( vehicle ) else Farbe1, Farbe2, Farbe3, Farbe4 = c1, c2, c3, c4 setVehicleColor ( vehicle, c1, c2, c3, c4 ) end if not p then Paintjob = getVehiclePaintjob ( vehicle ) else Paintjob = p setVehiclePaintjob ( vehicle, p ) end vioSetElementData ( vehicle, "stuning", "0|0|0|0|0|0|" ) local color = "|"..Farbe1.."|"..Farbe2.."|"..Farbe3.."|"..Farbe4.."|" vioSetElementData ( vehicle, "color", color ) vioSetElementData ( vehicle, "lcolor", "|255|255|255|" ) vioSetElementData ( vehicle , "sportmotor", 0 ) vioSetElementData ( vehicle , "bremse", 0 ) local antrieb = getVehicleHandling(vehicle)["driveType"] vioSetElementData ( vehicle, "antrieb", antrieb ) setPrivVehCorrectLightColor ( vehicle ) specPimpVeh ( vehicle ) SaveCarData ( player ) outputChatBox ( "Glückwunsch, du hast das Fahrzeug gekauft! Tippe /vehhelp für mehr Infomationen oder rufe das Hilfemenü auf!", player, 0, 255, 0 ) checkCarWahnAchiev( player ) if not vioGetElementData ( player, "everyCarBuyableForFree" ) then if ec then vioSetElementData ( player, "bankmoney", vioGetElementData ( player, "bankmoney" ) - carprice ) triggerClientEvent ( player, "createNewStatementEntry", player, "Fahrzeugkauf\n", carprice * -1, getVehicleNameFromModel ( vehid ).."\n" ) else vioSetElementData ( player, "money", vioGetElementData ( player, "money" ) - carprice ) end end warpPedIntoVehicle ( player, vehicle ) if vioGetElementData ( player, "playingtime" ) <= 300 then local text = "Du hast soeben ein Fahrzeug erworben!\nHier einige kurze Hinweise:\n\n1. Du kannst dein Fahrzeug mit /park an einem neuen\nOrt abstellen - dort wird es nach einem Server-\nrestart oder wenn du /towveh eintippst, erscheinen.\n\n2. Den Motor schaltest du mit \"X\" ein und aus.\n\n3. Mit /lock kannst du dein Fahrzeug abschliessen.\n\n4. Parke dein Fahrzeug nur an angemessenen Stellen,\nsonst wird es moeglicherweise geloescht.\nNicht angemessene Stellen sind z.b. auf der Strasse oder\nan wichtigen Stellen ( z.b. dem Eingang der Stadthalle ).\n\nFuer mehr: /vehinfos" prompt ( player, text, 30 ) end if not dbExec ( handler, "INSERT INTO vehicles (UID, Typ, Tuning, Spawnpos_X, Spawnpos_Y, Spawnpos_Z, Spawnrot_X, Spawnrot_Y, Spawnrot_Z, Farbe, Paintjob, Benzin, Slot, Sportmotor, Bremse, Antrieb) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", playerUID[pname], vehid, Tuning, spawnx, spawny, spawnz, rx, ry, rz, color, Paintjob, '100', slot, '0', '0', antrieb ) then outputDebugString ( "[carbuy] Error executing the query" ) destroyElement ( vehicle ) end activeCarGhostMode ( player, 10000 ) triggerClientEvent ( player, "leaveCarhouse", player ) setElementPosition ( vehicle, spawnx, spawny, spawnz ) outputLog ( getPlayerName ( player ).." hat ein Auto gekauft ( "..getVehicleNameFromModel ( vehid ).." )", "vehicle" ) return true else outputChatBox ( "Du hast nicht die erforderlichen Scheine / Boni!", player, 125, 0, 0 ) end else triggerClientEvent ( player, "infobox_start", getRootElement(), "Du hast nicht\ngenug Geld! Das\nFahrzeug kostet\n"..carprice.." $!", 5000, 125, 0, 0 ) end else triggerClientEvent ( player, "infobox_start", getRootElement(), "Du hast keinen\nfreien Fahrzeugslot!\nTippe /sellcar, um\neines deiner Fahr-\nzeuge zu ver-\nkaufen.", 5000, 125, 0, 0 ) end else triggerClientEvent ( player, "infobox_start", getRootElement(), "Du hast bereits zuviele\nFahrzeuge, zerstoere oder\nverkaufe eines deiner\nalten!", 5000, 255, 0, 0 ) end else outputChatBox ( "Du hast nicht die erforderlichen Scheine / Boni!", player, 125, 0, 0 ) end setCameraTarget( player, player ) triggerClientEvent ( player, "leaveCarhouse", player ) return false end function getFreeCarSlot ( player ) if vioGetElementData ( player, "maxcars" ) > vioGetElementData ( player, "curcars" ) then local cars = 0 for i = 1, vioGetElementData ( player, "maxcars" ) do if vioGetElementData ( player, "carslot"..i ) == 0 then return i end end else return false end end
-
Wäre auch gerne dabei Ing: DyFuckingroN
-
Wie alt sollte man min. sein?
-
habe das problem gelöst.
in der meta.xml einfach das C in c umändern und es geht^^
-
Habe das Script nur eingefügt und noch nichts geändert