InfluxTimer / sm-timer

Easy to setup, modular bhop/surf/deathrun timer for CSS & CS:GO gameservers.
https://influxtimer.com/
88 stars 26 forks source link

influx_transfer_files2db does not work #95

Closed 8guawong closed 4 years ago

8guawong commented 5 years ago

first of all

https://github.com/InfluxTimer/sm-timer/blob/cabc66a2422e5be380d720a5054d6ea07ebcac08/addons/sourcemod/scripting/influx_transfer_files2db.sp#L25

when you do this you can only use the command from server

so why not just RegServerCmd?

2nd of all

https://github.com/InfluxTimer/sm-timer/blob/cabc66a2422e5be380d720a5054d6ea07ebcac08/addons/sourcemod/scripting/influx_transfer_files2db.sp#L131

https://github.com/InfluxTimer/sm-timer/blob/cabc66a2422e5be380d720a5054d6ea07ebcac08/addons/sourcemod/scripting/influx_transfer_files2db.sp#L167

after SQL_EscapeString everything is just messed up

following is an example output after the SQL_EscapeString

add LogMessage(szData); after SQL_EscapeString and get the following

[influx_transfer_files2db.smx] \"\"\\"\\\\"\\\\\\\\"\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"

so basically its impossible to import runs and zones from files

hope everything is clearly stated and understandable

and you can fix this problem

really wants zones and runs in mysql instead of files

Thanks!

TotallyMehis commented 4 years ago

Fixed in 2beef4e