C:\Users\*\Desktop\Server\gamemodes\*.pwn(1407) : error 052: multi-dimensional arrays must be fully initialized Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
new GunPrice[30][1] = {
{500}, //parachute
{500}, //sdpistol
{3000}, //deagle
{2500}, //mp5
{3000}, //shotgun
{5000}, //m4
{1000}, //rifle
{25}, //pistolammo
{40}, //shotgunammo
{25}, //smgammo
{40}, //assaultammo
{50} //rifle
}; // Line 1407
new GunPrice[12][1] = { {500}, //parachute {500}, //sdpistol {3000}, //deagle {2500}, //mp5 {3000}, //shotgun {5000}, //m4 {1000}, //rifle {25}, //pistolammo {40}, //shotgunammo {25}, //smgammo {40}, //assaultammo {50} //rifle }; // Line 1407 |
Originally Posted by WackoX
Quote:
|
C:\Users\*\Desktop\Server\gamemodes\*.pwn(18893 -- 18894) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18896 -- 18897) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18899 -- 18900) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18902 -- 18903) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18975) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18980) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18980) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18985) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18985) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18990) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18990) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18995) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(18995) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(19000) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(19000) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(19005) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(19005) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(19010) : error 032: array index out of bounds (variable "GunPrice") C:\Users\*\Desktop\Server\gamemodes\*.pwn(19010) : error 032: array index out of bounds (variable "GunPrice") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 19 Errors.
Originally Posted by [cA
Unforseen ]
try this new GunPrice[12][1] = { (500), //parachute (500), //sdpistol (3000), //deagle (2500), //mp5 (3000), //shotgun (5000), //m4 (1000), //rifle (25), //pistolammo (40), //shotgunammo (25), //smgammo (40), //assaultammo (50), //rifle }; // Line 1407 or without () ex. 500 //parachute... |
Originally Posted by [LSR
State_Trooper ]
Quote:
![]() |
Originally Posted by WackoX
Quote:
|
new GunPrice[] = {
500, //parachute
500, //sdpistol
3000, //deagle
2500, //mp5
3000, //shotgun
5000, //m4
1000, //rifle
25, //pistolammo
40, //shotgunammo
25, //smgammo
40, //assaultammo
50 //rifle
};