Array must be indexed - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Array must be indexed (
/showthread.php?tid=424153)
Array must be indexed -
Joshman543 - 20.03.2013
Hello when I insert this code I receive the error:
pawn Код:
error 033: array must be indexed (variable "FACPAY")
Here is the code:
pawn Код:
new finalpaycheck = paycheck + FACPAY(i) - taxamount;
Re: Array must be indexed -
Misiur - 20.03.2013
You have FACPAY macro which probably returns string. Search for it and show it here.
Or try
pawn Код:
new finalpaycheck = paycheck + strval(FACPAY(i)) - taxamount;
but without knowing your code it can screw up everything
Re: Array must be indexed - Patrick - 20.03.2013
is the FACPAY defined as
if yes it must be
Re: Array must be indexed -
Joshman543 - 20.03.2013
Quote:
Originally Posted by pds2012
is the FACPAY defined as if yes it must be
|
I have FACPAY defined as a stock. I believe Misiur provided the solution. Rep for you both.