09.02.2015, 08:49
inputtext[DIALOG_SELLGOLD]
No no no, inputtext is an array of characters, if I send the amount of 12345 in your dialog, inputtext[0] = 1, inputtext[1] = 2, ..., inputtext[5] is not valid. You would want to replace that inputtext[DIALOG_SELLGOLD] with strval(inputtext). Same applies to inputtext[2], it has to be replaced with strval(inputtext).
Make the same modifications to sell iron too.
No no no, inputtext is an array of characters, if I send the amount of 12345 in your dialog, inputtext[0] = 1, inputtext[1] = 2, ..., inputtext[5] is not valid. You would want to replace that inputtext[DIALOG_SELLGOLD] with strval(inputtext). Same applies to inputtext[2], it has to be replaced with strval(inputtext).
Make the same modifications to sell iron too.