expected token: "}", but found "-label-"
#1

Код:
expected token: "}", but found "-label-"
Код:
enum pInfo
{
    pPass,
    pCash,
	pScore,
    pAdmin,
    pDeaths
    float:posX,
    float:posY,
    float:posZ
}
new PlayerInfo[MAX_PLAYERS][pInfo];
I cannot figure this out >.<
Reply
#2

Which is the error line?
Reply
#3

Код:
enum pInfo
{
    pPass,
    pCash,
    pScore,
    pAdmin,
    pDeaths,
    float:posX,
    float:posY,
    float:posZ
};
Reply
#4

You forgot a "," after pDeaths.EDIT:I also forgot to put the comma and for some reason can't edit the PAWN code.Comma after pDeaths
Reply
#5

In PAWN for SA-MP, we use the

pawn Код:
Float:
tag, not

pawn Код:
float:
Reply
#6

Quote:
Originally Posted by [MP]Ditch
Посмотреть сообщение
Код:
expected token: "}", but found "-label-"
Код:
enum pInfo
{
    pPass,
    pCash,
	pScore,
    pAdmin,
    pDeaths
    float:posX,
    float:posY,
    float:posZ
}
new PlayerInfo[MAX_PLAYERS][pInfo];
I cannot figure this out >.<
Код:
enum pInfo
{
    pPass,
    pCash,
	pScore,
    pAdmin,
    pDeaths
    float:posX,
    float:posY,
    float:posZ
}
You forgot ';' after the last '}'
Reply
#7

You don't need a semi-colon after the closing enumerator bracket. You only do that in arrays, in which this case is not one. All the code posted above me will not work.
pawn Код:
enum pInfo
{
    pPass,
    pCash,
    pScore,
    pAdmin,
    pDeaths,
    Float:posX,
    Float:posY,
    Float:posZ
}
new PlayerInfo[MAX_PLAYERS][pInfo];
You just forgot a coma after pDeaths (as stated above).

P.S

In SA-MP scripting, it's
pawn Код:
Float:
// not
float:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)