Error in constructing an Faction NutScript

Hello, I had a mistake when creating the game Faction Garrys mod on NutScript mode. And so the error is as follows:

[ERROR] gamemodes/hl2rp/schema/factions/sh_zcwu.lua:6 invalid escape sequence near ’ ‘’ ’

  1. unknows - gamemodes/hl2rp/schema/faction/sh_zcwu.lua:0

And you another error:

Faction ‘zcwu’ is missing a name.You need to add a FACTION.name = “Name”
Faction ‘zcwu’ is missing a description.You need to add a FACTION.desc = “Descraption”
Faction ‘zcwu’ is missing a color.You need to add FACTION.color = Color(1, 2, 3)

But what is in the file sh_zcwu.lia:

FACTION.name = “Сотрудник CWU”
FACTION.desc = “Сотрудник CWU”
FACTION.color = Color(25, 30, 180)
FACTION.isDefault = false
FACTION.models = {
“\models\humans\medic\female_01.mdl”
“\models\humans\medic\female_02.mdl”
“\models\humans\medic\female_03.mdl”
“\models\humans\medic\female_04.mdl”
“\models\humans\medic\female_05.mdl”
“\models\humans\medic\female_06.mdl”
“\models\humans\medic\male_01.mdl”
“\models\humans\medic\male_02.mdl”
“\models\humans\medic\male_03.mdl”
“\models\humans\medic\male_04.mdl”
“\models\humans\medic\male_05.mdl”
“\models\humans\medic\male_06.mdl”
“\models\humans\medic\male_07.mdl”
“\models\humans\medic\male_08.mdl”
“\models\humans\medic\male_09.mdl”
}
FACTION.pay = 20
FACTION.isGloballyRecognized = true

FACTION_CWU = FACTION.index

And when I try to give myself WhiteList, writes to me that this Facton does not exist.

You need commas after each model in the table

[editline]30th October 2016[/editline]

Hmm … Error still…

I meant do this:


FACTION.models = {
"\models\humans\medic\female_01.mdl",
"\models\humans\medic\female_02.mdl",
"\models\humans\medic\female_03.mdl",
"\models\humans\medic\female_04.mdl",
"\models\humans\medic\female_05.mdl",
"\models\humans\medic\female_06.mdl",
"\models\humans\medic\male_01.mdl",
"\models\humans\medic\male_02.mdl",
"\models\humans\medic\male_03.mdl",
"\models\humans\medic\male_04.mdl",
"\models\humans\medic\male_05.mdl",
"\models\humans\medic\male_06.mdl",
"\models\humans\medic\male_07.mdl",
"\models\humans\medic\male_08.mdl",
"\models\humans\medic\male_09.mdl"
}

Not sure what else you meant by your post

All the same error

Replace all the \ with /

I also want to notice NutScript 1.0 All work on NutScript 1.1 does not work

Right now I NutScript 1.1

Try this:
Попробуй это:


FACTION.models = {
"models/humans/medic/female_01.mdl",
"models/humans/medic/female_02.mdl",
"models/humans/medic/female_03.mdl",
"models/humans/medic/female_04.mdl",
"models/humans/medic/female_05.mdl",
"models/humans/medic/female_06.mdl",
"models/humans/medic/male_01.mdl",
"models/humans/medic/male_02.mdl",
"models/humans/medic/male_03.mdl",
"models/humans/medic/male_04.mdl",
"models/humans/medic/male_05.mdl",
"models/humans/medic/male_06.mdl",
"models/humans/medic/male_07.mdl",
"models/humans/medic/male_08.mdl",
"models/humans/medic/male_09.mdl",
}