Jump to content

Help With CreateFile -- Function


Recommended Posts

hi all I do a create file

he doesn't create the file

is this wrong with meta if

there somethink need to add it

on the meta for the create

this is mine code I check it

when resource start he should to createfile

but he is not create

local file = fileCreate("fileDecompilede.lua") 
if (file) then 
fileWrite(file,'LoL Are You Try To Steal The Mode? -- ') 
outputChatBox("DoneHelp") 
end 

meta --

script src="Read.lua" type="server" /> 
Link to comment
:lol: You are trying to decompile script's right? as what i see so we don't help people about that .

??

local file = fileCreate("fileDecompilede.lua") 
if (file) then 
fileWrite(file,'LoL Are You Try To Steal The Mode? -- ') 
outputChatBox("DoneHelp") 
end 

fileDecompilede .

nope it's just a Trick

and I do

file delet for client

I want just show for they Are You Try To Steal The Mode ?-- in lua

because for the noob baby stealing client from

mods\deathmatch\resources 
Link to comment
deletefiles = 
            { "DeleteFiles.lua", 
              "WinnerClient.lua", 
              "TriggerClient.lua", 
              "MessagesClient.lua" } 
  
function onStartResourceDeleteFiles() 
    for i=0, #deletefiles do 
        fileDelete(deletefiles[i]) 
        local files = fileCreate(deletefiles[i])     
        if files then 
            fileWrite(files, "Dont Try Steal Others scripts .") 
            fileClose(files) 
        end 
    end 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onStartResourceDeleteFiles) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...