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

Because you're formatting tmp twice and the old value is over-written the second time, why are you even using two formats? This can easily be achieved with a single one. Additionally you're inserting the value as a string when it is an integer in the second format, you need to use %d for integers, for example:

pawn Код:
format(tmp, sizeof(tmp), "{FFFFFF}Account: %s\n{FFFFFF}New Balance: {254C01}$%d", RemoveUnderScore(playerid), Player[playerid][BankMoney]);
I suggest you read the PAWN documentation over at CompuPhase's website.
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)