fix course uploading (hopefully)

This commit is contained in:
Jonny_Bro (Nikita) 2024-03-30 21:24:43 +05:00
parent 7cf77f4029
commit 19d056bcd7
No known key found for this signature in database
GPG key ID: 3F1ECC04147E9BD8

View file

@ -22,6 +22,9 @@ concommand.Add("Beatrun_Confirm", function()
return
end
QueuedArgs = NULL
QueuedFunction = NULL
end)
local function GetCurrentMapWorkshopID()
@ -33,7 +36,7 @@ local function GetCurrentMapWorkshopID()
if file.Exists("maps/" .. currentMap .. ".bsp", addon.title) then return addon.wsid end
end
return 0
return "no_map_id"
end
function GetCourse(sharecode)
@ -89,7 +92,7 @@ function UploadCourse()
return true
else
print("An error occurred: " .. message)
print("An error occurred: " .. response.message)
return false
end