Keep getting this error in my darkRP modification folder, no I haven't messed with the core files, just my modification thing, I added these jobs and keep getting these:
[CODE][ERROR] gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:444: bad argument #1 to 'floor' (number expected, got nil)
1. floor - [C]:-1
2. AddExtraTeam - gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua:444
3. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:18
4. include - [C]:-1
5. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:111
6. fn - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:119
7. Call - addons/ulib/lua/ulib/shared/hook.lua:183
8. unknown - lua/includes/modules/gamemode.lua:35
[/CODE]
here's where the code looks like:
[CODE]443 CustomTeam.team = jobCount
444 CustomTeam.salary = math.floor(CustomTeam.salary)
445 jobByCmd[CustomTeam.command] = table.insert(RPExtraTeams, CustomTeam)[/CODE]
-snip, bad reader-
[QUOTE=Zachy;46339397]Did you mean to put "CustomTeam.salary" in the math.floor?[/QUOTE]
This is all the default stuff, that was a core file, for some reason a random script error popped up and I don't want to mess with the core files without your guys' help
Sorry, you need to Log In to post a reply to this thread.