Help ! - 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: Help ! (
/showthread.php?tid=471594)
Help ! -
ChandraLouis - 24.10.2013
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]++;
Re: Help ! -
qazwsx - 24.10.2013
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];
Re: Help ! -
ChandraLouis - 24.10.2013
Yes,
pawn Код:
//Enums
enum pInfo
{
pPass,
pAdmin,
pScore,
pWarns,
pKills,
pDeaths,
pCash,
Skin,
pcolor,
pBan,
}
//News
new Player[MAX_PLAYERS][pInfo];
Re: Help ! -
qazwsx - 24.10.2013
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
Re: Help ! -
ChandraLouis - 24.10.2013
thank you it helped