Error!
#5

You can't put conditional statements in Arrays. It should be done like this:

PHP код:
if(pGeneral[playerid][PLR_NEWBIE] == 1) {
     new 
deathmatch_HumanClasses[][] = {
     {
CIVILIAN,0,5}
     };
} else {
     new 
deathmatch_HumanClasses[][] = {
     {
CIVILIAN,0,5},
     {
POLICEMAN,3000,280},
     {
MEDIC,7000,275},
     {
SCOUT,11000,230},
     {
HEAVYMEDIC,17000,274},
     {
FARMER,25000,161},
     {
ENGINEER,32000,27},
     {
SWAT,45000,285},
     {
HEAVYSHOTGUN,50000,25},
     {
ADVANCEDMEDIC,63000,276},
     {
ADVANCEDENGINEER,72000,260},
     {
FEDERALAGENT,90000,163},
     {
KICKBACK,110000,149},
     {
ADVANCEDSCOUT,150000,29},
     {
SOLDIER,300000,287},
     {
DOCTOR,750000,70},
     {
HERSHEL,900000,62},
     {
ADVANCEDSOLDIER,2000000,287},
     {
SUPPORTER,PREMIUM_CLASS_SUPPORTER,35},
     {
SPONSOR,PREMIUM_CLASS_SPONSOR,123},
     {
ELITE,PREMIUM_CLASS_ELITE,294},
     {
MYCLASS,0,0},
     {
VETERAN,0,179},
     {
SAMURAI,650000,203},
     {
RESEARCH,850000,73},
     {
INVENTOR,150000,8},
     {
SHERIFF,200000,283},
     {
KEPPLER,2500000,295},
     {
ADVHERSHEL,2700000,68},
     {
BULLET,2300000,121}
     };

Reply


Messages In This Thread
Error! - by Xportaler - 05.04.2017, 20:47
Re: Error! - by NBass - 05.04.2017, 20:57
Re: Error! - by Xportaler - 05.04.2017, 21:03
Re: Error! - by Toroi - 05.04.2017, 21:46
Re: Error! - by DarkSkull - 06.04.2017, 00:35
Re: Error! - by Vince - 06.04.2017, 05:41
Re: Error! - by Xportaler - 06.04.2017, 07:28

Forum Jump:


Users browsing this thread: 2 Guest(s)