not 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: not indexed (
/showthread.php?tid=77754)
not indexed -
Gamer007 - 14.05.2009
Код:
E:\Games Setup\Gta san andreas server\Install\samp02Xserver.win32\filterscripts\dAdmin.pwn(4711) : error 033: array must be indexed (variable "weaponIDs")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Код:
if(GetPlayerWeapon(i) == weaponIDs)
Re: not indexed -
James_Alex - 14.05.2009
mybe
pawn Код:
if(GetPlayerWeapn(i) == weaponIDs[i])
Re: not indexed -
Gamer007 - 14.05.2009
No it doesn't work
Re: not indexed -
dice7 - 14.05.2009
You need a counter or a for loop to get it indexed
Re: not indexed -
MX_Master - 14.05.2009
Gamer007 just give to us more code if you want to get quick answer
* may be "weaponIDs" defined as array but uses as number
Re: not indexed -
Think - 14.05.2009
just check the defenition of WeaponIDs
Re: not indexed -
Gamer007 - 14.05.2009
fixed it ty for help