Jump to content

Lock this


Anubhav

Recommended Posts

  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Ah, I get it now.

Then if I were you, I'd probably use the File functions;

fileCreate -- Create a file, for example GangInfo.txt 
fileOpen  -- Open it 
fileWrite -- Write the text to it 
fileClose -- Close the file (This automatically saves it) 
fileRead -- Use this to read the file, and put the text into the memo. (Needs fileOpen) 

Link to comment
WASSIm i know how to make that things. I WANT TO SAVE A MEMO FOR GANG. Gang information. :o someone can help me? WASSIm u noob. You are giving negative reply. If you want to help me just tell how to save it.

if you want help respect please and i will not help you and is better if anyone don't help you

Link to comment
Dealman, if he already has a group system that uses SQL then why would he store it inside files?

I believe it would be more efficient to just have a server-side text file for it, rather than having to pull it from the database.

That said, there are more than one way to accomplish what he wants. I simply put out one way of doing it, and the way I would have done it.

Link to comment

SQL is the best but anyway I'm too lazy to write examples from my mobile So I found a script in one pf my old post:

  
local mesg = ""  
addCommandHandler("say", 
function (thePlayer,_,msg)  
local time = getRealTime() 
    local hours = time.hour 
    local minutes = time.minute 
  
mesg = mesg.." [:"..hours..":"..minutes.."] "..getPlayerName ( thePlayer )..": "..msg 
end 
) 
  
function LogTimer () 
if mesg ~= "" then 
File = fileOpen ("logs.txt") 
if File then 
fileWrite (File, mesg ) 
else 
fileCreate ("logs.txt") 
File = fileOpen ("logs.txt")  
fileWrite (File, mesg ) 
end 
fileClose (File)  
mesg = "" 
end 
end 
setTimer (LogTimer, 30000, 0 )   

I haven't tested This but I hope this will help you.

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...