• Gmod server error (DarkRP)
    8 replies, posted
When i start my gmod server it gives me this error [IMG]http://i.imgur.com/mXBxl6v.jpg[/IMG] I think its one of these jobs in jobs.lua (The job names and description are in polish) : [I]TEAM_CHIEF = DarkRP.createJob("FBI", { color = Color(20, 20, 255, 255), model = { "models/fbi_pack/fbi_01.mdl", "models/fbi_pack/fbi_02.mdl", "models/fbi_pack/fbi_03.mdl", "models/fbi_pack/fbi_04.mdl", "models/fbi_pack/fbi_05.mdl", "models/fbi_pack/fbi_06.mdl", "models/fbi_pack/fbi_07.mdl", "models/fbi_pack/fbi_08.mdl", "models/fbi_pack/fbi_09.mdl", }, description = [[FBI jest oddzia&#322;em pomagaj&#261;cym policjantom oraz ich dowódc&#261;. Koordynuj si&#322;&#281; policji aby wprowadza&#263; prawa. Uderz gracza swoj&#261; pa&#322;k&#261; aresztowania, aby go aresztowa&#263;. Jako nauczk&#281; uderzaj graczy pa&#322;k&#261; elektryczn&#261;. Mo&#380;esz u&#380;ywa&#263; broni do otwierania drzwi graczy, je&#347;li s&#261; poszukiwani. Wpisz /wanted <imi&#281;> aby uprzedzi&#263; mieszka&#324;ców kto jest kryminalist&#261;. Wpisz /jailpos aby ustawi&#263; miejsce wi&#281;zienia.]], weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle_drp", "stunstick", "door_ram", "weaponchecker", "m9k_mp5_drp"}, command = "fbi", max = 2, salary = GAMEMODE.Config.normalsalary * 1.67, admin = 0, vote = true, hasLicense = true, chief = true, ammo = { ["pistol"] = 120, } }) TEAM_MAYOR = DarkRP.createJob("Burmistrz", { color = Color(150, 20, 20, 255), model = "models/player/breen.mdl", description = [[Burmistrz miasta tworzy prawa aby i nim rz&#261;dzi. Je&#347;li jeste&#347; Burmistrzem mo&#380;esz tworzy&#263; i akceptowa&#263; uwagi. Wpisz /wanted <imi&#281;> aby uprzedzi&#263; mieszka&#324;ców kto jest kryminalist&#261;. Wpisz /jailpos aby ustawi&#263; miejsce wi&#281;zienia. Wpisz /lockdown aby wprowadzi&#263; stan wyj&#261;tkowy miasta. Ka&#380;dy musi by&#263; w &#347;rodku w czasie stanu wyj&#261;tkowego. Policja patroluje obszar. /unlockdown ko&#324;czy stan wyj&#261;tkowy]], weapons = {"arrest_stick", "unarrest_stick", "stunstick", "weaponchecker"}, command = "burmistrz", max = 1, salary = GAMEMODE.Config.normalsalary * 1.89, admin = 0, vote = true, hasLicense = false, mayor = true }) TEAM_CAR = DarkRP.createJob("Diler Samochodów", { color = Color(20, 150, 20, 255), model = "models/player/barney", description = [[Sprzedajesz samochody dla zysku.]], weapons = {}, command = "car", max = 1, salary = GAMEMODE.Config.normalsalary, admin = 0, vote = false, hasLicense = false }) [/I]
I need to see the actual line the error is on, which is line number 49 of jobs.lua. Use something like notepad++ to see the line numbers
[code]"models/fbi_pack/fbi_09.mdl",[/code] You dont need the , on the last model.
Remove the parentheses here:[LUA] ammo = { ["pistol"] = 120, } }) [/LUA] You're ending the code prematurely.
[QUOTE=Mr Hatisk;44969159][code]"models/fbi_pack/fbi_09.mdl",[/code] You dont need the , on the last model.[/QUOTE] Sadly, still doesn't work. [editline]1st June 2014[/editline] [QUOTE=djjkxbox360;44968912]I need to see the actual line the error is on, which is line number 49 of jobs.lua. Use something like notepad++ to see the line numbers[/QUOTE] I use notepad++, The line 49 is on the policeman job, wich is not included here. but it's on the line of ammo. But if it's 49th from the start of the "tutorial", then it's the start of FBI job, wich is named [I]TEAM_CHIEF[/I]. [editline]1st June 2014[/editline] [QUOTE=Aeternal;44969269]Remove the parentheses here:[LUA] ammo = { ["pistol"] = 120, } }) [/LUA] You're ending the code prematurely.[/QUOTE] I used that for police job (not included here) and it works fine, but when i made the car dealer job, the error started to show up.
Need to see the line for the policeman job, line 49
[QUOTE=djjkxbox360;44971079]Need to see the line for the policeman job, line 49[/QUOTE] [I] TEAM_POLICE = DarkRP.createJob("Policjant", { color = Color(25, 25, 170, 255), model = { "models/humans/nypd1940/male_01.mdl", "models/humans/nypd1940/male_02.mdl", "models/humans/nypd1940/male_03.mdl", "models/humans/nypd1940/male_04.mdl", "models/humans/nypd1940/male_05.mdl", "models/humans/nypd1940/male_06.mdl", "models/humans/nypd1940/male_07.mdl", "models/humans/nypd1940/male_08.mdl", "models/humans/nypd1940/male_09.mdl" }, description = [[Jako policjant musisz chroni&#263; obywatelów. Masz &#322;apa&#263; z&#322;oczy&#324;ców i chroni&#263; niewinnych. Uderz gracza swoj&#261; pa&#322;k&#261; aresztowania, aby go aresztowa&#263;. Jako nauczk&#281; uderzaj graczy pa&#322;k&#261; elektryczn&#261;. Mo&#380;esz u&#380;ywa&#263; broni do otwierania drzwi graczy, je&#347;li s&#261; poszukiwani. T&#261; broni&#261; mo&#380;esz tak&#380;e odmra&#380;a&#263; rzeczy graczy (je&#347;li w&#322;&#261;czone). Wpisz /wanted <imi&#281;> aby uprzedzi&#263; mieszka&#324;ców kto jest kryminalist&#261;.]], weapons = {"arrest_stick", "unarrest_stick", "m9k_colt1911_drp", "stunstick", "door_ram", "weaponchecker"}, command = "cp", max = 4, salary = GAMEMODE.Config.normalsalary * 1.45, admin = 0, vote = true, hasLicense = true, ammo = { ["pistol"] = 120, } <-- line 49 })[/I] I don't get it...
Remove the comma after at the end of [I]["pistol"] = 120,[/I]
[QUOTE=djjkxbox360;44981333]Remove the comma after at the end of [I]["pistol"] = 120,[/I][/QUOTE] 1. it's not line 49 2. it doesn't help [editline]3rd June 2014[/editline] God, everyone, I'm closing this post, i was such a n00b... jesus... I tried to delete one job and then another, and then i saw frickin this... god i'm such an idiot: [I]TEAM_MEDIC = DarkRP.createJob("Lekarz", { color = Color(47, 79, 79, 255), model = "models/players/kleiner.mdl", , description = [[Ze swoj&#261; medyczn&#261; wiedz&#261; leczysz mieszka&#324;ców miasta. Bez Lekarza, ludzie nie mog&#261; by&#263; leczeni. Klikaj&#261;c LPM trzymaj&#261;c apteczk&#281; leczysz graczy. Klikaj&#261;c rpm trymaj&#261;c apteczk&#281; leczysz siebie.]], weapons = {"med_kit"}, command = "medic", max = 2, salary = GAMEMODE.Config.normalsalary, admin = 0, vote = false, hasLicense = false, medic = true })[/I] I will just think what's wrong with people while they don't understand what i did wrong.
Sorry, you need to Log In to post a reply to this thread.