[Holley] Write new value in sql

Join Discord

kaiser86

Dedicated Member
Dedicated Member
Dec 13, 2011
64
0
32
Spain
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
 
Last edited:

kaiser86

Dedicated Member
Dedicated Member
Dec 13, 2011
64
0
32
Spain
thanks for your answer,
if I was confused about that, but it still does not work.


Any idea?


thank you!
 
Upvote 0