Hello everyone:
I have a small problem, and it is that I can not make a script that works in order to post a new sql table.
I leave here my example:
;---------------------------------------------------
[@main]
#ACT
FormatStr "FLD_RG='%s'" %USERNAME
ReadValueSql "TBL_BOSSRG" %A9 "FLD_CHARACTER,FLD_RG" [@next]
[@next]
#ACT
Mov D1 %ARG(2)
Mov A3 %ARG(1)
goto @next2
#IF
Equal A3 ""
#ACT
FormatStr "'%s',%s" %USERNAME 0
Mov A8 %A9
FormatStr "FLD_CHARACTER='%s'" %USERNAME
Mov A2 %A9
WriteValueSql "TBL_BOSSRG" %A2 "FLD_CHARACTER,FLD_RG" %A8
goto @next2
[@next1]
#say
bla bla
;----------------------------------------------
What I need to do is to enter the name of the character in the character column, but I can not do it!!
Thanks for your attention and help
I have a small problem, and it is that I can not make a script that works in order to post a new sql table.
I leave here my example:
;---------------------------------------------------
[@main]
#ACT
FormatStr "FLD_RG='%s'" %USERNAME
ReadValueSql "TBL_BOSSRG" %A9 "FLD_CHARACTER,FLD_RG" [@next]
[@next]
#ACT
Mov D1 %ARG(2)
Mov A3 %ARG(1)
goto @next2
#IF
Equal A3 ""
#ACT
FormatStr "'%s',%s" %USERNAME 0
Mov A8 %A9
FormatStr "FLD_CHARACTER='%s'" %USERNAME
Mov A2 %A9
WriteValueSql "TBL_BOSSRG" %A2 "FLD_CHARACTER,FLD_RG" %A8
goto @next2
[@next1]
#say
bla bla
;----------------------------------------------
What I need to do is to enter the name of the character in the character column, but I can not do it!!
Thanks for your attention and help
Last edited: