05.08.2013, 22:27
Hey, I'm creating some weapon saving.
Standard way is to declare:
So i tried with
but can't make it working while using:
Error:
Standard way is to declare:
pawn Код:
pWep0,
pWep1,
pWep2,
pWep3,
pWep4,
pWep5,
pWep6,
pWep7,
pWep8,
pWep9,
pWep10,
pWep11,
pWep12
pawn Код:
new Weapons[11];
pawn Код:
INI_Int("Weapon0", pInfo[playerid][Weapons[0]]);
Код:
C:\Users\Anis\Desktop\MoneyGrub\MoneyGrub\gamemodes\moneygrub.pwn(50) : error 028: invalid subscript (not an array or too many subscripts): "Weapons" C:\Users\Anis\Desktop\MoneyGrub\MoneyGrub\gamemodes\moneygrub.pwn(50) : warning 215: expression has no effect C:\Users\Anis\Desktop\MoneyGrub\MoneyGrub\gamemodes\moneygrub.pwn(50) : error 001: expected token: ";", but found "]" C:\Users\Anis\Desktop\MoneyGrub\MoneyGrub\gamemodes\moneygrub.pwn(50) : error 029: invalid expression, assumed zero C:\Users\Anis\Desktop\MoneyGrub\MoneyGrub\gamemodes\moneygrub.pwn(50) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.