Hey i just made a addon and i want to log the commands to tell the owners of a server witch player used the command and that but im not sure how to log the player name and the command they typed maybe, [code]file.Append( "chatlog.txt", "ply:SteamID().." | "..ply:Nick()..""..text" )[/code] not sure how to do this, i understand you cant just give me the script so just as hint or a start thanks :D
im normal with lua i should be able to figure it out for my self with a start
btw cant give info about the addon sorry.
You were pretty close:
[code]
file.Append( "chatlog.txt", ply:SteamID() .. " | " ..ply:Nick() .. textVariable )
[/code]
The main thing to remember is that you don't need to surround variables ( like text or textVariable ) or functions ( like ply:SteamID() or ply:Nick() ) with quotes.
Thanks so much :D case closed or thread closed whatever
Sorry, you need to Log In to post a reply to this thread.