how to fix that?
[CODE]VAC secure mode is activated.
Client "[Emp'G]TCAH|AlphaTier" connected (192.168.1.71:27006).
[[Emp'G]TCAH|AlphaTier|2|STEAM_0:1:11021015] Lua Error:
[ERROR] lua/includes/extensions/util.lua:39: attempt to call method 'GetAimVecto
r' (a nil value)
1. GetPlayerTrace - lua/includes/extensions/util.lua:39
2. Run - gamemodes/base/gamemode/cl_targetid.lua:9
3. unknown - gamemodes/base/gamemode/cl_init.lua:84
Dropped [Emp'G]TCAH|AlphaTier from server ("Too many Lua Errors! Sorry!")[/CODE]
Did you try switching server hosts?
[editline]3rd January 2013[/editline]
Put sv_kickerrornum 0 in server.cfg
Its on my Windows PC where i want to host a server but always when i start it and join = attempt to call methdo getaimvector gamemode = mine :D
shouldnt be because of my gamemode because it has worked days before xD
still not workin
sv_kickerrornum 0
= something is creating script erros when u kill a zombie / player or walk 2 minutes
This is probably and old gamemode, ask a coder on the [URL="http://facepunch.com/showthread.php?t=1193966"]hire thread[/URL] to fix it for Garry's Mod 13.
sv_kickerrornum is just used to stop you from being kicked when you have Lua Errors it doesnt actually fix your problem
its my gamemode and i started scripting it in gmod 13 beta so it should be actual
and its has a simple and shitty source :D
im afraid to show it cuz its never finished and its really bad coded because i was long time inactiv
cl_init:
[PHP]include ("shared.lua")[/PHP]
shared.lua[PHP]GM.Name = "Gun Game"
GM.Author = "MisterOutofTime"
GM.Email = "admin@cfserver.de"
GM.Website = "cfserver.de"
function GM:Initialize()
self.BaseClass.Initialize( self )
end[/PHP]
init.lua:
[PHP]AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
//rank = {"1" = "weapon_ar2" }
rankgun = {"weapon_pistol","weapon_pistol","weapon_pistol", "weapon_smg1", "weapon_buckshot", "weapon_rpg", "weapon_ar2", "weapon_ar2", "weapon_ar2", "weapon_ar2", "weapon_ar2"}
ammogun = {"weapon_crowbar","weapon_pistol","weapon_pistol", "weapon_smg1", "weapon_buckshot", "weapon_rpg", "weapon_ar2", "weapon_ar2", "weapon_ar2", "weapon_ar2"}
function GM:PlayerSpawn( ply )
self.BaseClass:PlayerSpawn( ply )
ply:SetGravity ( 0.75 ) -- Although I suggest 1, becuase .75 is just too low.
ply:SetMaxHealth( 100, true )
ply:SetWalkSpeed( 325 )
ply:SetRunSpeed ( 325 )
end
function GM:PlayerInitialSpawn( ply ) // When spawning after joining the sever
ply:SetNWInt("rank" ,ply:GetNWInt("rank") + 1)
end
function GM:PlayerLoadout( ply )
//PrintMessage(HUD_PRINTTALK, ply:GetNWInt("rank").. "" ..rankgun[ ply:GetNWInt("rank")] )
//ply:Give( "weapon_physcannon" ) // A Gravity gun
//ply:Give( "weapon_physgun" )
//ply:Give( "weapon_ar2" )
if ply:GetNWInt("rank") <=9 then
ply:Give(rankgun[ply:GetNWInt("rank")])
ply:GiveAmmo( 999, "pistol" )
ply:GiveAmmo( 999, "smg1" )
end
//ply:Give( "gmod_tool" )
end
function RankUpbyKill( victim, weapon, killer )
if victim:Nick() != nil || victim:Nick() == "" then
//PrintMessage(HUD_PRINTTALK,"Victim:"..victim:Nick().." killer:"..killer:Nick().."")
if victim:Nick() != killer:Nick() then
if killer:GetNWInt("rank") <=9 then
killer:SetNWInt("rank",(killer:GetNWInt("rank") + 1))
killer:Give(rankgun[killer:GetNWInt("rank")])
killer:Remove(rankgun[killer:GetNWInt("rank") - 1])
end
//PrintMessage(HUD_PRINTTALK, "Player " .. victim:GetName() .. " has died.\n" )
//zombie = ents.Create("npc_zombie")
//zombie:Spawn()
end
end
end
function RankUpbyNPCKill( victim, killer, weapon )
//killer:Give( "weapon_tmp" )
if killer:GetNWInt("rank") <=9 then
killer:SetNWInt("rank",killer:GetNWInt("rank") + 1)
killer:Give(rankgun[killer:GetNWInt("rank")])
killer:Remove(rankgun[killer:GetNWInt("rank") - 1])
end
//PrintMessage(HUD_PRINTTALK,"killer:"..killer:Nick().."")
//zombie = ents.Create("npc_zombie")
//zombie:Spawn()
end
function getRank(ply)
return ply:GetNWInt("rank")
end
function rank( ply )
PrintMessage(HUD_PRINTTALK,"Rank = "..getRank(ply).."")
end
function upperRank( ply )
zombie = ents.Create("npc_zombie")
zombie:Spawn()
ply:SetNWInt( "rank",ply:GetNWInt("rank") + 1)
end
function lowerRank( ply )
//zombie = ents.Create("npc_zombie")
zombie:Spawn()
ply:SetNWInt( "rank",ply:GetNWInt("rank") - 1)
end
function CommandParser(ply,text,public)
cmd = split(text,nil)
if (cmd[1] == "!rank")then
rank(ply)
end
if (cmd[1] == "!zombie") then
x = 1
PrintMessage(HUD_PRINTTALK,"Zombie Command Executed arg = "..cmd[2])
if cmd[2] != nil then
while x <= tonumber(cmd[2]) do
PrintMessage(HUD_PRINTTALK,"Spawn "..cmd[2].."Zombies")
zombie = ents.Create("npc_zombie")
zombie:Spawn()
x = x + 1
end
end
end
if (cmd[1] == "!rankup")then
upperRank(ply)
end
if (cmd[1] == "!rankdown")then
lowerRank(ply)
end
end
function split(inputstr, sep)
if sep == nil then
sep = "%s"
end
t={} ; i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
t[i] = str
i = i + 1
end
return t
end
concommand.Add( "rank", rank )
concommand.Add( "upperRank", upperRank )
concommand.Add( "lowerRank", lowerRank )
hook.Add( "PlayerDeath", "WeaponRank", RankUpbyKill )
hook.Add("OnNPCKilled","WeaponRanktest", RankUpbyNPCKill)
hook.Add("PlayerSay","CommandParser",CommandParser)[/PHP]
My eyes. :suicide:
thats what i thought too :D its so crappy xD
so somebody knows a solution for this p roblem?
Sorry, you need to Log In to post a reply to this thread.