expected token: "}", but found "-label-" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: expected token: "}", but found "-label-" (
/showthread.php?tid=331918)
expected token: "}", but found "-label-" -
BleverCastard - 06.04.2012
Код:
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 >.<
Re: expected token: "}", but found "-label-" -
MadeMan - 06.04.2012
Which is the error line?
Re: expected token: "}", but found "-label-" -
GtasaPoliceModz - 06.04.2012
Код:
enum pInfo
{
pPass,
pCash,
pScore,
pAdmin,
pDeaths,
float:posX,
float:posY,
float:posZ
};
Re: expected token: "}", but found "-label-" -
Cjgogo - 06.04.2012
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
Re: expected token: "}", but found "-label-" -
Rob_Maate - 06.04.2012
In PAWN for SA-MP, we use the
tag, not
Re: expected token: "}", but found "-label-" -
Shetch - 06.04.2012
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 '}'
Re: expected token: "}", but found "-label-" -
ReneG - 06.04.2012
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