Help !
#1

LSGW1.5.pwn(490) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
LSGW1.5.pwn(490) : warning 215: expression has no effect
LSGW1.5.pwn(490) : error 001: expected token: ";", but found "]"
LSGW1.5.pwn(490) : error 029: invalid expression, assumed zero
LSGW1.5.pwn(490) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Line 490 : pInfo[playerid][pDeaths]++;
Reply
#2

Quote:
Originally Posted by ChandraLouis
Посмотреть сообщение
LSGW1.5.pwn(490) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
LSGW1.5.pwn(490) : warning 215: expression has no effect
LSGW1.5.pwn(490) : error 001: expected token: ";", but found "]"
LSGW1.5.pwn(490) : error 029: invalid expression, assumed zero
LSGW1.5.pwn(490) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Line 490 : pInfo[playerid][pDeaths]++;
Did you make the enum? Make sure like this:

pawn Код:
enum PlayerInfo()
{
pDeaths
}

new pInfo[MAX_PLAYERS][PlayerInfo];
Reply
#3

Yes,
pawn Код:
//Enums
enum pInfo
{
    pPass,
    pAdmin,
    pScore,
    pWarns,
    pKills,
       pDeaths,
       pCash,
    Skin,
    pcolor,
    pBan,
}
//News
new Player[MAX_PLAYERS][pInfo];
Reply
#4

Quote:
Originally Posted by ChandraLouis
Посмотреть сообщение
Yes,
//Enums
enum pInfo
{
pPass,
pAdmin,
pScore,
pWarns,
pKills,
pDeaths,
pCash,
Skin,
pcolor,
pBan,
}
//News
new Player[MAX_PLAYERS][pInfo];
then it should be:
pawn Код:
Player[playerid][pDeaths]++;
Wish this helped
Reply
#5

thank you it helped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)