Jump to content

Lock this


Anubhav

Recommended Posts

Posted (edited)

I need to make a Memo Save.

I have update button. For leaders/founder and it will set to editable for them only but how to update it again?

I want to save it also.

Edited by Guest
  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

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

Posted

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) 

Posted
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

Posted

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

Then help him instead of mocking him. You did nothing other than make yourself look like a jerk just now.

Posted
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.

Posted

First of i am not so good in SQL/MySQL. I used tables and account data for my group system. Dealman thanks. I will use file function's instead of XML. XML is laggy shit.

Posted

I am not using SQL. I am using DEFAULT tables and using account data. For memo using file functions.. Someone can please show example also please?

Posted

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.

Posted
Hmm no it din't. I need for each group one file. Its memo will be thier. the memo text depends on the gang.. Something like that?

Then use xml, I'll post an example of xml functions within 2 hours.

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

    • No registered users viewing this page.

×
×
  • Create New...