• I need help with my DarkRP server (Just doing it for funn)
    4 replies, posted
I got a error saying, [ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 18. The best help I can give you is this: Right before the 'Admin', Lua expected to read an '='-sign, but it didn't. Hints:         - Did you simply forget the '='-sign?         - Did you forget a comma?         - Is this supposed to be a local variable? ------- End of Simplerr error -------   1. error - [C]:-1    2. doInclude - gamemodes/darkrp/gamemode/libraries/simplerr.lua:530     3. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:137      4. Call - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:148       5. unknown - gamemodes/darkrp/gamemode/init.lua:111 Couldn't Load Init Script: 'darkrp/gamemode/init.lua' So i followed the instructions (readed it) and i fixed some mistakes but i still got the error.. can any of you guys help me? Here is the dropbox Download for my Custom Jobs.. Thanks for the Help! https://www.dropbox.com/s/m1xxjqtunaetgm5/jobs.lua?dl=0 (sorry i cant give any coins i just made my acc so i can get a awnser Sorry!)
TEAM SAdmin = TEAM_SAdmin TEAM Theif = TEAM_Thief (Thief, not Theif) TEAM Police = TEAM_Police most obvious mistake ever
OH MY GOD !! You have many mistake, i think all mistake ! First : it's TEAM_SADMIN or TEAM_THIEF, not TEAM Sadmin Second : Color() get 4 argument, write 255 after 3 other one ( Color(0, 0, 0, 255)) Third : command is the /job command not what the user is able to do and other mistake but i think you need to read documentation before editing some script : http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Sorry haha! im new to this stuff, its hard for a new guy actually but thank you!
I think you are mistaken. If you check the wiki it always defaults to 255 meaning there is no reason to put it unless you are changing it. [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/Color]Color Global Function[/url]
Sorry, you need to Log In to post a reply to this thread.