Hey guys, Im making a script for a SQL based blacksmith using dynamic menus from sql query made arrays (I put all the blacksmith recipies in there) but Im having a bit of trouble with my dynamic menu. I browsed the forum a bit and found this:
set @menu$,"";
for ( set .@i,0, .@i< getarraysize(@array); set .@i,.@i + 1)
set @menu$,@menu$ + @array[.@i] +":";
select @menu$-1;
I plugged in all my variables and my array and everything complies fine with I reload the scripts but when I execute the script itself I get:
[Error]: script:op_2: invalid data for operator C_SUB
[Debug]: Data: string value="Slayer:Bastard Sword:"
[Debug]: Data: number value=1
I think its because its trying to do math with strings but I have no idea how to fix it and I really need the dynamic menu. Can anyone point me in the right direction? ANY help would be much appreciated, thanks.