SA-MP Forums Archive
error 033: array must be indexed (variable "cookieamount") - 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: error 033: array must be indexed (variable "cookieamount") (/showthread.php?tid=585722)



error 033: array must be indexed (variable "cookieamount") - suni - 16.08.2015

Код:
if(cookieamount < 5 || cookieamount > 1000) return SendClientMessage(playerid, red, "must be between 5 and 1000>");



Re: error 033: array must be indexed (variable "cookieamount") - Andre02 - 16.08.2015

Show us where you create cookieamount


Re: error 033: array must be indexed (variable "cookieamount") - Keyhead - 16.08.2015

This sometimes happens when you define the size of a integer variable such as a cookie variable. Just remove any size definition. See it it works. Or, show us the code.


Re: error 033: array must be indexed (variable "cookieamount") - suni - 16.08.2015

this?
Quote:

new cookieamount[MAX_COOKIES];

or you want the command