skullempenggg
New member
- Joined
- Jan 3, 2023
- Messages
- 3
- Reaction score
- 0
Hello
I'm trying to make a mod that will download routes for route recording but it doesn't work... Nothing is downloaded
{$CLEO .cs}
0000: NOP
WAIT 8500
0B34: samp register_client_command "route" to_label @route
20@ = 0
WHILE TRUE
WAIT 0
IF 20@ == 1
THEN
0AC8: 0@ = allocate_memory_size 1024
0AD3: 0@ = "cleo\VehicleRecording.path"
0AC8: 1@ = allocate_memory_size 1024
0AD3: 1@ = "https://www.dropbox.com/s/o0rgvg2m7me64t6/VehicleRecording.path?dl=1"
0AB1: @URLDownloadToFile 2 0@ 1@
0AD1: "~r~Download" time 1337
WAIT 3000
chatmsg "Route Downloaded" -1
20@ = 0
END
END
:URLDownloadToFile
0AA2: 10@ = load_library "Urlmon.dll" // IF and SET
0AA4: 11@ = get_proc_address "URLDownloadToFileA" 10@
0AA7: address 11@ params 5 pop 0 /params/ 0 0 0@ 1@ 0 /ret/ 12@
0AB2: ret 0
:route
wait 0
20@ = 1
chatmsg "Downloading Route" -1
samp.CmdRet()
The problem is that the file isn't downloading in my cleo folder
I'm trying to make a mod that will download routes for route recording but it doesn't work... Nothing is downloaded
{$CLEO .cs}
0000: NOP
WAIT 8500
0B34: samp register_client_command "route" to_label @route
20@ = 0
WHILE TRUE
WAIT 0
IF 20@ == 1
THEN
0AC8: 0@ = allocate_memory_size 1024
0AD3: 0@ = "cleo\VehicleRecording.path"
0AC8: 1@ = allocate_memory_size 1024
0AD3: 1@ = "https://www.dropbox.com/s/o0rgvg2m7me64t6/VehicleRecording.path?dl=1"
0AB1: @URLDownloadToFile 2 0@ 1@
0AD1: "~r~Download" time 1337
WAIT 3000
chatmsg "Route Downloaded" -1
20@ = 0
END
END
:URLDownloadToFile
0AA2: 10@ = load_library "Urlmon.dll" // IF and SET
0AA4: 11@ = get_proc_address "URLDownloadToFileA" 10@
0AA7: address 11@ params 5 pop 0 /params/ 0 0 0@ 1@ 0 /ret/ 12@
0AB2: ret 0
:route
wait 0
20@ = 1
chatmsg "Downloading Route" -1
samp.CmdRet()
The problem is that the file isn't downloading in my cleo folder