Jump to content

Help With CreateFile -- Function


Recommended Posts

Posted

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" /> 

Try a little harder to be a little better

I Can Made To You Any Script For $

Skype : alhajarii-mtasa

Posted

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

  

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

Try a little harder to be a little better

I Can Made To You Any Script For $

Skype : alhajarii-mtasa

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

My ingame nickname : Ops!

-DeathMatch GameMode By Ops! : 5%

Posted
You don't need fileDelete anymore.

https://wiki.multitheftauto.com/wiki/Meta.xml

FROM VERSION 1.3.1 r4909 ONWARDS

cache: When the script file type is "client", this setting controls whether the file is saved on the players hard drive. Default is "true". Using "false" will mean the file is not saved.

Example


I want him just create file and it's not do it

Try a little harder to be a little better

I Can Made To You Any Script For $

Skype : alhajarii-mtasa

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