Garry's Mod

Garry's Mod

Guess Who
此主题已被锁定
Night 2016 年 4 月 2 日 下午 12:52
Lua Error
Hi there, Lolle or MadJack.

I'm hosting a dedicated server with custom player models. (star wars themed :] ) and basically, whenever I load up the server and someone joins, including me, they get a weird grey screen backround with this error:

[ERROR] lua/includes/modules/draw.lua:198: attempt to index local 'color' (a nil value)
1. RoundedBox - lua/includes/modules/draw.lua:198
2. unknown - addons/guesswho/gamemodes/guesswho/gamemode/cl_pickteam.lua:83

If you could help me in getting this fixed asap, it would be much appreciated.
< >
正在显示第 1 - 7 条,共 7 条留言
Night 2016 年 4 月 2 日 下午 12:58 
最后由 Night 编辑于; 2016 年 4 月 2 日 下午 1:01
lolleko  [开发者] 2016 年 4 月 2 日 下午 5:07 
Can you post your config file. You most likely have a syntax error or incorrect value in there.
Night 2016 年 4 月 2 日 下午 8:34 
Here are two pastebin links to sh_config and cl_pickteam

sh_config: http://pastebin.com/X75V9qgs and (I only corrected the models)
cl_pickteam: http://pastebin.com/CPQcwuWA (I only edited line 125 in this)

Thanks!
最后由 Night 编辑于; 2016 年 4 月 2 日 下午 8:38
lolleko  [开发者] 2016 年 4 月 3 日 上午 9:32 
Yo are missing commas in soem tables:
GM.Models = {
--Characters
"models/player/b4p/b4p_bobafett.mdl"
"models/player/b4p/b4p_c3po.mdl"
"models/player/b4p/b4p_chewbacca.mdl"
"models/player/b4p/b4p_jawa.mdl"
"models/player/b4p/b4p_rodian.mdl"
"models/player/b4p/b4p_vader.mdl"
"models/player/b4p/b4p_yoda.mdl"
"models/player/b4p/b4p_tusken.mdl"
}
should be
GM.Models = {
--Characters
"models/player/b4p/b4p_bobafett.mdl",
"models/player/b4p/b4p_c3po.mdl",
"models/player/b4p/b4p_chewbacca.mdl",
"models/player/b4p/b4p_jawa.mdl",
"models/player/b4p/b4p_rodian.mdl",
"models/player/b4p/b4p_vader.mdl",
"models/player/b4p/b4p_yoda.mdl",
"models/player/b4p/b4p_tusken.mdl"
}
Night 2016 年 4 月 3 日 上午 10:56 
引用自 lolle
Yo are missing commas in soem tables:
GM.Models = {
--Characters
"models/player/b4p/b4p_bobafett.mdl"
"models/player/b4p/b4p_c3po.mdl"
"models/player/b4p/b4p_chewbacca.mdl"
"models/player/b4p/b4p_jawa.mdl"
"models/player/b4p/b4p_rodian.mdl"
"models/player/b4p/b4p_vader.mdl"
"models/player/b4p/b4p_yoda.mdl"
"models/player/b4p/b4p_tusken.mdl"
}
should be
GM.Models = {
--Characters
"models/player/b4p/b4p_bobafett.mdl",
"models/player/b4p/b4p_c3po.mdl",
"models/player/b4p/b4p_chewbacca.mdl",
"models/player/b4p/b4p_jawa.mdl",
"models/player/b4p/b4p_rodian.mdl",
"models/player/b4p/b4p_vader.mdl",
"models/player/b4p/b4p_yoda.mdl",
"models/player/b4p/b4p_tusken.mdl"
}

Going to try it now and see how it works
Night 2016 年 4 月 3 日 下午 12:26 
Error fixed! Thank you so much :)
ILoveChubbyWomen 2016 年 6 月 20 日 上午 10:59 
mine is exactly like that i only edited models i didnt screw with the teams
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50