Gamemode Help
#1

I really dont get it!

What's wrong ?

Quote:

new GunPrice[37][1] = {
{2500}, //parachute [0]
{1000}, //golfclub [1]
{800}, //nightstick [2]
{200}, //knife [3]
{700}, //baseballbat [4]
{400}, //shovel [5]
{200}, //poolcue [6]
{400}, //purpledildo [7]
{780}, //whitedildo [8]
{560}, //longwhitedildo [9]
{530}, //whitedildo2 [10]
{50}, //flowers [11]
{600}, //cane [12]
{5000}, //sdpistol [13]
{3000}, //colt45 [14]
{30000}, //deagle [15]
{10000}, //mp5 [18]
{10000}, //shotgun [19]
{100000}, //combat [20]
{70000}, //ak47 [22]
{90000}, //m4 [23]
{60000}, //rifle [24]
{100000}, //sniper [25]
{50}, //pistolammo [26]
{70}, //shotgunammo [27]
{45}, //MP5 ammo [28]
{60}, //assaultammo [29]
{60}, //rifleammo [30]
{30}, //Silenced Ammo [31]
{60}, // Deagle Ammo [32]
{100}, // Combat Ammo [34]
{100} // Sniper Ammo [36]
};

I get this erros message

Quote:

C:\Users\****\*******\Fire Roleplay\Edited by Firesky\gamemodes\****.pwn(3505) : error 052: multi-dimensional arrays must be fully initialized
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

The erros says is in the line of };
Reply
#2

You don't need a multi-dimentional array:
pawn Код:
new
    GunPrice[] =
    {        
        2500,
        1000,
        800,
        ..., // Any other...
        100 // Last one.    
    };
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)