Hello,
I wanted to ban some props from being used in CS-Office, I used this line of code:
[CODE]"models/props/cs_office/projector_remote.mdl"
"models/props/cs_office/computer_keyboard.mdl"
"models/props/cs_office/computer_mouse.mdl"[/CODE]
Whenever I add this in 'sh_config' it says my server is getting to many LUA errors, and everything crashes.
Could someone explain what I am doing wrong? I thought I was doing this the right way!
Thank you in advance!
Rick
Post the lua error and put sv_kickerrornum 0 in your server.cfg.
[QUOTE=code_gs;43363253]Post the lua error and put sv_kickerrornum 0 in your server.cfg.[/QUOTE]
Where can I find this LUA error?
P.s Thanks for the reply
It should print in your console or in the client's console.
If the 'code' you've pasted is part of a table then each line (except the last [is optional]) needs to end with a comma ,
An actual error message would be much more helpful though.
[QUOTE=wh1t3rabbit;43365512]If the 'code' you've pasted is part of a table then each line (except the last [is optional]) needs to end with a comma ,
An actual error message would be much more helpful though.[/QUOTE]
Well, that's the problem. As you might know there are 3 props blocked as default, none of those lines ends with a ','.
This is what I have:
[CODE]// Props will not be able to become these models
BANNED_PROP_MODELS = {
"models/props/cs_assault/dollar.mdl",
"models/props/cs_assault/money.mdl",
"models/props/cs_office/snowman_arm.mdl"
"models/props/cs_office/projector_remote.mdl"
"models/props/cs_office/computer_keyboard.mdl"
"models/props/cs_office/computer_mouse.mdl"
}[/CODE]
Edit; Okay, nevermind. Really I am such a dumbass, I really didn't notice these fucking ','. Fuck me.
Anyways, this solved my issues. Everyone, thanks a lot who helped me out!
Sorry, you need to Log In to post a reply to this thread.