rror 033: array must be indexed
#1

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.
Reply
#2

Show the msg function. Probably it returns int or float, not array.
Reply
#3

try to remove the [256]... do just "name" or "ad"... suppose to work...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)