Hey Guys. Simple Question
how can i Print a "CreateConVar" "convar" ?
maybe, if i create it. like:
AdminRSpeed = CreateConVar("Admin_WalkSpeed",360)
ply:PrintMessage(HUD_PRINTTALK, AdminRSpeed)
does not work.
please Help
[url]http://wiki.garrysmod.com/?title=G.GetConVar[/url]
Returns the val of your convar
[editline]03:32PM[/editline]
[url]http://wiki.garrysmod.com/?title=G.GetConVar[/url]
Returns the val of your convar
[lua]
CreateConVar("AdvancedSB_Team_Admin_Red", "123")
local AdminRed = GetConVar("AdvancedSB_Team_Admin_Red"):GetInt()
function Test (ply)
print(AdminRed)
end
[/lua]
Does not Work.
/Edit: Stupid Coding :D
Thank you it works :D
-snip-
Nevermind, I see you got it working.
Yepp. I had the convars in shared.lua and the function in init.lua :D
Sorry, you need to Log In to post a reply to this thread.