Help with Derma

Seem to be getting a error with my derma.
Ive looked through it and i dont see any errors

Error
[addons\pointmod\lua\pointmod\cl\rules.lua:13] attempt to index global ‘RulesP’ (a nil value)


function Rules()
RulesF = vgui.Create("DFrame")
RulesF:SetSize(290, 361)
RulesF:Center()
RulesF:SetTitle("Rules")
RulesF:SetSizable(true)
RulesF:MakePopup()
end

RulesP = vgui.Create("DPanel", RulesF)
RulesP:SetSize(250, 280)
RulesP:SetPos(300, 180)

Rulestitle = vgui.Create("DLabel", RulesF)
Rulestitle:SetPos(400, 190)
Rulestitle:SetText("Rules")
Rulestitle:SizeToContents()

Rule1 = vgui.Create("DLabel", RulesF)
Rule1:SetPos(310, 220)
Rule1:SetText("1. No Cheating          ")
Rule1:SizeToContents()

Rule2 = vgui.Create("DLabel", RulesF)
Rule2:SetPos(310, 250)
Rule2:SetText("2. No spamming")
Rule2:SizeToContents()

Rule3 = vgui.Create("DLabel", RulesF)
Rule3:SetPos(310, 280)
Rule3:SetText("3. No Explioting")
Rule3:SizeToContents()

Rule4 = vgui.Create("DLabel", RulesF)
Rule4:SetPos(310, 310)
Rule4:SetText("4. No Button Spamming")
Rule4:SizeToContents()

Rule5 = vgui.Create("DLabel", RulesF)
Rule5:SetPos(310, 340)
Rule5:SetText("5. Deaths cant use guns at start")
Rule5:SizeToContents()

Rule6 = vgui.Create("DLabel", RulesF)
Rule6:SetPos(310, 370)
Rule6:SetText("6. No beeging for cash or admin")
Rule6:SizeToContents()

Rule7 = vgui.Create("DLabel", RulesF)
Rule7:SetPos(310, 400)
Rule7:SetText("7. No Avoiding been death")
Rule7:SizeToContents()

RuleEnd = vgui.Create("DLabel", RulesF)
RuleEnd:SetPos(310, 440)
RuleEnd:SetText("Breaking these will get you banned")
RuleEnd:SizeToContents()
RuleEnd:SetTextColor(Color(255, 0, 0, 255))

concommand.Add("Rules", Rules)

[LUA]
function Rules()
local RulesF = vgui.Create(“DFrame”)
RulesF:SetSize(290, 361)
RulesF:Center()
RulesF:SetTitle(“Rules”)
RulesF:SetSizable(true)
RulesF:MakePopup()
end

local RulesP = vgui.Create(“DPanel”, RulesF)
RulesP:SetSize(250, 280)
RulesP:SetPos(300, 180)

local Rulestitle = vgui.Create(“DLabel”, RulesF)
Rulestitle:SetPos(400, 190)
Rulestitle:SetText(“Rules”)
Rulestitle:SizeToContents()

local Rule1 = vgui.Create(“DLabel”, RulesF)
Rule1:SetPos(310, 220)
Rule1:SetText("1. No Cheating ")
Rule1:SizeToContents()

local Rule2 = vgui.Create(“DLabel”, RulesF)
Rule2:SetPos(310, 250)
Rule2:SetText(“2. No spamming”)
Rule2:SizeToContents()

local Rule3 = vgui.Create(“DLabel”, RulesF)
Rule3:SetPos(310, 280)
Rule3:SetText(“3. No Explioting”)
Rule3:SizeToContents()

local Rule4 = vgui.Create(“DLabel”, RulesF)
Rule4:SetPos(310, 310)
Rule4:SetText(“4. No Button Spamming”)
Rule4:SizeToContents()

local Rule5 = vgui.Create(“DLabel”, RulesF)
Rule5:SetPos(310, 340)
Rule5:SetText(“5. Deaths cant use guns at start”)
Rule5:SizeToContents()

local Rule6 = vgui.Create(“DLabel”, RulesF)
Rule6:SetPos(310, 370)
Rule6:SetText(“6. No beeging for cash or admin”)
Rule6:SizeToContents()

local Rule7 = vgui.Create(“DLabel”, RulesF)
Rule7:SetPos(310, 400)
Rule7:SetText(“7. No Avoiding been death”)
Rule7:SizeToContents()

local RuleEnd = vgui.Create(“DLabel”, RulesF)
RuleEnd:SetPos(310, 440)
RuleEnd:SetText(“Breaking these will get you banned”)
RuleEnd:SizeToContents()
RuleEnd:SetTextColor(Color(255, 0, 0, 255))

concommand.Add(“Rules”, Rules)
[/LUA]

Fixed: Something wrong with my singleplayer soon a sput it on my server worked fine