SA-MP Forums Archive
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: Array must be indexed (/showthread.php?tid=71826)



Array must be indexed - Robbin237 - 04.04.2009

[Solved]


Re: Array must be indexed - Think - 04.04.2009

recheck it:

pawn Код:
new Weapons[13][2];

if(Weapons[y] == DetectWeapons[x])
dind't you miss something?


Re: Array must be indexed - Robbin237 - 04.04.2009

I really don't know, could you take a look at my pastebin code?

Thnx.


Re: Array must be indexed - Think - 04.04.2009

do this

pawn Код:
if(Weapons[y][0] == DetectWeapons[x])
instead of this:

pawn Код:
if(Weapons[y] == DetectWeapons[x])