Jump to content

When i compile script it doesnt work


xTravax

Recommended Posts

Posted

i downloaded scite lol and what now no setup or wtf

how can i compile now or i need to add that in my server resources so it protects by itself or what?

Posted

Pres[T]ege wasn't talking about the default SciTE but about the one which comes with Lua for Windows package ( click to download ).

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted

You must have used it wrong, I use it for all my scripts and no problems.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

lol how can u use it wrong?

even idiots can do it

you press add,add .lua file and press compile

then in meta if script was named drift.lua then i chosed to make it compiled in .bak

and then file is drift.lua.bak

so in meta i add drift.lua.bak easy as hell

Posted

See? you are wrong, you don't have to rename anything on meta, you just add the files, choose to make a file with .bak and done.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

.bak files generally are BACKUP files, they're supposed to be a security copy in case the compiled files don't work or you need to edit them later. You simply have to compile the scripts.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted

well thanks for helping me but still

wait,do i need to have lua and bak files at same time at same place?

so in drift resource should i just have drift.bak

or drift.lua and drift.bak?

Posted
well thanks for helping me but still

wait,do i need to have lua and bak files at same time at same place?

so in drift resource should i just have drift.bak

or drift.lua and drift.bak?

because it fu**** up my files which i cannot replace with a old backup idk why

and on drift script is missing one row

and when i make 1 drift that drift points got disabled by itself idk did it compile with a mistake but still i need a help

Posted

BAK files are simply the version of the files not compiled, it's a security copy. You don't need to have any files except the ones that are compiled.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted

I just use a UTF version of LuaC and bulk compile all of the 'Development' folder with a batch script (the result is placed in the resources folder).

Retired

Posted

wtf now 1 server stealed my scripts.

luckily my friend is kinda of spy so he was playing he asked for admin and he getted it and he deleted everything in admin resources tab except resourcemanager admin and one more resource called resourcesomething and btw they can still steal my scripts and that works when they steal......

Posted

Of course resources can still be stolen. Compiling a script only makes the script not being able to be read and edited by humans ( can still be decompiled ).

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted
Hmm You Try The Scite ? Use FileDelete .

Man i just see that program like Notepad++ for editing .lua files but can you give me some example of that filedelete?

and Anderl,Thanks is there any way to report that Server?

Posted
Hmm You Try The Scite ? Use FileDelete .

Man i just see that program like Notepad++ for editing .lua files but can you give me some example of that filedelete?

and Anderl,Thanks is there any way to report that Server?

For Example you can use it like that but the code in the last script :

fileDelete ( client.lua ) 
fileDelete ( server.lua ) 
fileDelete ( wall.png ) 

  

Posted
Hmm You Try The Scite ? Use FileDelete .

Man i just see that program like Notepad++ for editing .lua files but can you give me some example of that filedelete?

and Anderl,Thanks is there any way to report that Server?

For Example you can use it like that but the code in the last script :

fileDelete ( client.lua ) 
fileDelete ( server.lua ) 
fileDelete ( wall.png ) 

There's still a workaround for that way, and server files don't need to be deleted because they aren't even downloaded.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted

Could i use

local newFile = fileCreate("client.lua")                -- attempt to create a new file 
if (newFile) then                                     -- check if the creation succeeded 
    fileWrite(newFile, "This is a test file!")        -- write a text line 
    fileClose(newFile)                                -- close the file once you're done with it 
    fileDelete(newFile)                               -- delete file 
end 
  
local newFile = fileCreate("drift.lua")                -- attempt to create a new file 
if (newFile) then                                     -- check if the creation succeeded 
    fileWrite(newFile, "This is a test file!")        -- write a text line 
    fileClose(newFile)                                -- close the file once you're done with it 
    fileDelete(newFile)                               -- delete file 
end 

?

I'm sorry i used an Example from Wiki and just edited it.

Because i'm not so good at scripting and i need this.

And btw when i make that filedelete script then i put my drift.lua and client.lua script in same folder and write that 3 scripts in meta.xml and when people download folder will be empty?

Posted

That code will protect nothing, it's a simple script that creates two files, write some shit to them, closes them and then deletes them.

You should've read my post above and checked this topic: viewtopic.php?f=91&t=51882#p505736.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

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