rror 033: 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: rror 033: array must be indexed (
/showthread.php?tid=189431)
rror 033: array must be indexed -
Izutah - 11.11.2010
Hey guys,
Was wondering if anyone can lend some assistance with two errors im getting:
Error 1:
error 033: array must be indexed (variable "ad")
Code:
}
new ad[265]; // <------- Error!
ad = msg(cmdtext, idx);
if (!strlen(ad)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /(ad)vertise [advertisement]");
if(AdTimer != 0)
{
Error 2:
error 033: array must be indexed (variable "name")
new name[256]; // <------- Error
name = msg(cmdtext,idx);
Thanks for any support given.
Re: rror 033: array must be indexed -
rs.pect - 11.11.2010
Show the msg function. Probably it returns int or float, not array.
Re: rror 033: array must be indexed -
XePloiT - 11.11.2010
try to remove the [256]... do just "name" or "ad"... suppose to work...