Pivity

Where did I go Wrong with this Code?

Last read Never
#1

Recently I've done my own custom coding for a job for a SCP-RP Server and it keeps causing lua errors and messing up the server. I'm new to coding so please don't be so harsh. The coding will be posted below. The category for the job is Red Right Hand btw.

TEAM_RRHCAP = SCP-RP.createjob("RRH Captain", { color = Color(255,255,255, 255), model = "models/player/lordvipes/rerc_vector/vector_cvp.mdl", description = [[Mobile Task Force Alpha-1 is a task force that reports directly to the O5 Council and is used in situations that require the strictest operational security. Consisting of the Foundation's best and most loyal operatives, all additional information regarding MTF Alpha-1 is classified Level 5.]], weapons = {"bkeycard", "weapon_rpw_binoculars_explorer", "weapon_r_restrains", "weapon_stungun", "weapon_policeshield", "ma85_wf_ar01", "sg_medkit", "ma85_wf_pt14"}, command = "rrhcap", max = 1, salary = 600, admin = 0, hasLicense = true, hasRadio = true, canBlink = true, hasEyes = true, category = "Red Right Hand" customCheck = function(ply) return ply:SteamID() == "STEAM_0:1:77042730" end, return ply:GetUserGroup() == "superadmin" end, CustomCheckFailMsg = "You are not the Proper Rank to use this Job..." })

#2

Your customCheck function is defined wrong. You've got too many ends.

Edited You should probably try reading the errors and posting them as well :P

#3

hasEyes = true, category = "Red Right Hand", customCheck = function( ply ) return ply:SteamID() == "STEAM_ID_HERE" or ply:IsSuperAdmin() end, CustomCheckFailMsg = "You are not the Proper Rank to use this Job..." })

if not worked : function(ply)

EDIT : up superadmin

#4
ByARitz Crackerat 18th of December 2016 19:00:23
Your customCheck function is defined wrong. You've got too many ends.EditedYou should probably try reading the errors and posting them as well :P

It mentions something about vgui/radio from what I can remember. I would give the actual error from console it self but my Filezilla won't connect ;P

#6
ByLukeat 18th of December 2016 19:23:54
You need filezilla why might i ask?🔥Lunar Index🔥 - 💥🌟❄️ Beautiful Website Splash Page ❄️🌟💥

Its what the owner of the server uses for the server files

#7
ByLionHeart #ANat 18th of December 2016 19:43:05
Its what the owner of the server uses for the server files

Yeah i know what filezilla is jesus im not that dumb, you dont need filezilla for logs you restart the server and view console failing that stream the logs from the panel app that says logs

#8
ByLukeat 18th of December 2016 19:52:36
Yeah i know what filezilla is jesus im not that dumb, you dont need filezilla for logs you restart the server and view console failing that stream the logs from the panel app that says logs

You gotta understand. Some hosts are very VERY bad.

#9
ByARitz Crackerat 18th of December 2016 22:37:06
You gotta understand. Some hosts are very VERY bad.

Yeah but not many don't have the log feature

Users viewing this thread
Nobody