Error 006: Must be assigned to an array.
#6

I assume that Player[playerid][Money] is an integer? and so is the BankMoney enumeration? You cannot compare an integer to a string like that, nor increment it like that, nor would you really want to, instead I suggest doing this:

pawn Код:
new amount = strval(inputtext);
That will get the integer value of the inputtext and store it in amount as an integer, so therefore the rest of your code should function as intended.
Reply


Messages In This Thread
Error 006: Must be assigned to an array. - by iGetty - 11.08.2011, 03:23
Re: Error 006: Must be assigned to an array. - by Backwardsman97 - 11.08.2011, 03:33
Re: Error 006: Must be assigned to an array. - by iGetty - 11.08.2011, 03:34
Re: Error 006: Must be assigned to an array. - by Backwardsman97 - 11.08.2011, 03:48
Re: Error 006: Must be assigned to an array. - by iGetty - 11.08.2011, 03:58
Re: Error 006: Must be assigned to an array. - by JaTochNietDan - 11.08.2011, 04:00
[No subject] - by iGetty - 11.08.2011, 04:02
Re: Error 006: Must be assigned to an array. - by JaTochNietDan - 11.08.2011, 04:10
Re: Error 006: Must be assigned to an array. - by iGetty - 11.08.2011, 04:18

Forum Jump:


Users browsing this thread: 1 Guest(s)