Jump to content

BloodFang

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by BloodFang

  1. No.The error is here: select @menu$-1; It should be set .@val, select(@menu$)-1; Or: select @menu$; Thanks Key, your the best lol
  2. 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.
×
×
  • Create New...