mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 20:43:02 +05:00
Rename file to data
This commit is contained in:
parent
028351c084
commit
a1cd4c345f
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ local domain = CreateClientConVar("Beatrun_Domain", "localhost", true, false, "O
|
|||
function UploadCourse()
|
||||
if Course_Name == "" or Course_ID == "" then return print("Can't upload in Freeplay") end
|
||||
|
||||
local file = file.Open("beatrun/courses/" .. game.GetMap() .. "/" .. Course_ID .. ".txt", "rb", "DATA")
|
||||
local filedata = util.Decompress(file:Read(file:Size()))
|
||||
local data = file.Open("beatrun/courses/" .. game.GetMap() .. "/" .. Course_ID .. ".txt", "rb", "DATA")
|
||||
local filedata = util.Decompress(data:Read(data:Size()))
|
||||
|
||||
local function h_success(code, body, headers)
|
||||
print("Response: " .. code)
|
||||
|
|
Loading…
Reference in a new issue