[QUOTE=hellguy;16139686]Any ideas of how to fix it?[/QUOTE]
Which parts are you having trouble with?
okay !ulx chatcommands are fixed but the chatcommands (!addonmenu, !comment) doesn't work, and the console command addon_menu doesn't exist
His code works. Ive tried it. You must be doing something wrong.
everything here fixed
Okay everything working fine execpt that when we try to use comment it server consoles show a lua error
Lua Error: autorun/server/mystuff.lua:16: attemp to call method 'name' (a nil value)
:3
I'm pasting the lua file line that has the error:
file.Write(file.Read("comments.txt").."\""..str.."\" - "..ply:Name().."\n")
[QUOTE=hellguy;16157256]I'm pasting the lua file line that has the error:
file.Write(file.Read("comments.txt").."\""..str.."\" - "..ply:Name().."\n")[/QUOTE]
Change "Name" into "Nick" so that it looks like this:
[code]file.Write(file.Read("comments.txt").."\""..str.."\" - "..ply:Nick().."\n")[/code]
lua error lua:15: attempt to index global 'v' (a nil value)
Post that line of code.
if not file.Exists("comments.txt") then file.Write("comments.txt","") end
[editline]01:10AM[/editline]
the entire lua file
[url]http://pastebin.com/m16edf9ee[/url]
This is line nr 15:
[code]v:ChatPrint("Commentit window opened")[/code]
This is the fix:
[code]ply:ChatPrint("Commentit window opened")[/code]
now it says chatprint is a nil value
Do
[code]ply:PrintMessage(HUD_PRINTTALK, "Comment it window opened.")[/code]
[QUOTE=Entoros;16066282][url]http://pastebin.com/m1cd4aaf3[/url]
"You may only save and read files inside of the data folder for security reasons." - Garry's Mod Wiki[/QUOTE]
I modified a code that outputted the contents of my C drive
attemp to call method 'PrintMessage' (a nil value)
Let me see all of your code now. PrintMessage does exist, so something else must be wrong.
[url]http://pastebin.com/me8c8090[/url]
and now?
[QUOTE=Jamie932;16177569]Let me see all of your code now. PrintMessage does exist, so something else must be wrong.[/QUOTE]
[url]http://pastebin.com/me8c8090[/url]
the coders that were helping me died? D:
work is undone : /
this post need coders
Comment It isn't made to be a concommand, so take out the concommand.Add.
Sorry, you need to Log In to post a reply to this thread.