08.02.2013, 17:01
I got this errors
SCRIPT:
&
Код:
N:\Server\gamemodes\MyGame.pwn(505) : error 028: invalid subscript (not an array or too many subscripts): "BMedal" N:\Server\gamemodes\MyGame.pwn(505) : warning 215: expression has no effect N:\Server\gamemodes\MyGame.pwn(505) : error 001: expected token: ";", but found "]" N:\Server\gamemodes\MyGame.pwn(505) : error 029: invalid expression, assumed zero N:\Server\gamemodes\MyGame.pwn(505) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
enum Info { Donator, Admin, Bani, Pass, Job, BMedal, SMedal, GMedal, Diamant, Titan }; new PlayerInfo[MAX_PLAYERS][Info];
Код:
if(listitem == 0) { if(GetPlayerMoney(playerid) < 1000) { GivePlayerMoney(playerid, -1000); BMedal[playerid] + 1; // < ---- ERROR! } else return SendClientMessage(playerid, -1 ,"( ! ) Nu ai destui bani ! ( 1000 )"); }