proc
SaveLists(var/mob/M)
set background=1
//boughtskills //1
var/SQLQuerya
if(M.boughtskills.len)
SQLQuerya+="UPDATE boughtskills SET name='[M.name]'"
var/ia=0
while(ia<=M.boughtskills.len)
ia++
sleep(1)
if(M.boughtskills[ia])
SQLQuerya+=",listid='[ia]'"
SQLQuerya+=",listvalue='[M.boughtskills[ia]]'"
SQLQuerya+="WHERE name='[M.name]'"
Problem description:
I am getting a missing expression error on the line:
SQLQuerya+=",listvalue='[M.boughtskills[ia]]'"
But surely if this was the case it would throw and error on the:
if(M.boughtskills[ia])
Is this something that you have to work arround like in this post: http://www.byond.com/ forum/?post=80701&hl=missing%20expression%20list
Help :D