• DarkRPVar Error?
    2 replies, posted
Everytime I try to start and join my garry's mod server it says "To many Lua errors.Sorry." It says the error is in line 19 of my "cl_zombie.lua" ~~This first line of script is line 17 the last is 31~~ local function DrawZombieInfo() local localplayer = LocalPlayer() if not IsValid(localplayer) or not localplayer:getDarkRPVar("zombieToggle") then return end local shouldDraw = hook.Call("HUDShouldDraw", GAMEMODE, "DarkRP_ZombieInfo") if shouldDraw == false then return end for x=1, localplayer:getDarkRPVar("numPoints"), 1 do local zPoint = localplayer.DarkRPVars["zPoints".. x] if zPoint then zPoint = zPoint:ToScreen() draw.DrawText("Zombie Spawn (" .. x .. ")", "DarkRPHUD2", zPoint.x, zPoint.y - 20, Color(255, 255, 255, 200), 1) draw.DrawText("Zombie Spawn (" .. x .. ")", "DarkRPHUD2", zPoint.x + 1, zPoint.y - 21, Color(255, 0, 0, 255), 1) end end end Does anyone know how to fix it?
What's the error? Also use [lua] tags.
[IMG]Untitled 3.jpg[/IMG][QUOTE=ms333;42233060]What's the error? Also use [lua] tags.[/QUOTE]
Sorry, you need to Log In to post a reply to this thread.