array must be indexed, Help please.
#2

FYI, please use Pawn tags when posting pawn code, makes things a little easier with coloring. Anyway, the lines you pointed out in your code were not actual errors in your log, so not sure why you pointed those out, but anway...

This is your problem child
pawn Код:
new giveplayerid[MAX_PLAYERS] = closestplayer(playerid)
giveplayerid does not need to be an array in this case. Simply remove the [MAX_PLAYERS] and you should be fine.

pawn Код:
new giveplayerid = closestplayer(playerid)
Reply


Messages In This Thread
array must be indexed, Help please. - by cdcyborg - 21.11.2009, 02:22
Re: array must be indexed, Help please. - by Calix - 21.11.2009, 03:00

Forum Jump:


Users browsing this thread: 1 Guest(s)