Array in y_ini
#1

Hey, I'm creating some weapon saving.

Standard way is to declare:
pawn Код:
pWep0,
pWep1,
pWep2,
pWep3,
pWep4,
pWep5,
pWep6,
pWep7,
pWep8,
pWep9,
pWep10,
pWep11,
pWep12
So i tried with
pawn Код:
new Weapons[11];
but can't make it working while using:

pawn Код:
INI_Int("Weapon0", pInfo[playerid][Weapons[0]]);
Error:
Код:
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.
Reply


Messages In This Thread
Array in y_ini - by RedJohn - 05.08.2013, 22:27
Re: Array in y_ini - by Ada32 - 05.08.2013, 22:34
Re: Array in y_ini - by RedJohn - 05.08.2013, 22:38
Re: Array in y_ini - by Ada32 - 05.08.2013, 22:49
Re: Array in y_ini - by RedJohn - 05.08.2013, 22:52
Re: Array in y_ini - by RedJohn - 05.08.2013, 23:14
Re: Array in y_ini - by Jefff - 05.08.2013, 23:14

Forum Jump:


Users browsing this thread: 1 Guest(s)